[PyKDE] Dumb question

Eron Lloyd eronlloyd at gmail.com
Sun May 1 19:06:02 BST 2005


On Sunday 01 May 2005 10:04 am, Richie Hindle wrote:
> 'exec' is a Python keyword, so it can't be used as an identifier:
> >>> exec = 2
>
>   File "<stdin>", line 1
>     exec = 2
>          ^
> SyntaxError: invalid syntax

Ah ha. I should've tried before complaining. So even if it resides in an 
object that requires qualification, python keywords can't be used. Got ya.

Thanks,

Eron




More information about the PyQt mailing list