Are Python's reserved words reserved in places they dont need to be?

Istvan Albert istvan.albert at gmail.com
Tue Sep 12 11:10:55 EDT 2006


metaperl wrote:
> -->  python -i
> >>> class = "algebra"
>   File "<stdin>", line 1
>     class = "algebra"
>           ^
> SyntaxError: invalid syntax

Designing a syntax to avoid all possible newbie errors is impractical
because as soon as you are finished with one iteration the new newbies
will start making different kinds of errors...

Take solace in the fact that you've been immediately notifed of the
error while its fix: renaming pass to passwd is trivial ...

i.




More information about the Python-list mailing list