"as" keyword woes

Mel mwilson at the-wire.com
Tue Dec 9 16:17:09 EST 2008


Carl Banks wrote:

>[ ... ] Do you want the human reader to have to have all kinds of
> rules to memorize about when a symbol is an identifier and when it's a
> syntactic element?  Do you want people to have to learn when to escape
> a symbol so that the parser treats it as an identifier instead of
> syntax?

Then again, Python programmers should be used to namespaces, and it
shouldn't bother people that `open` means one thing, and `image.open` means
something very different -- if you've imported image.

        Mel.





More information about the Python-list mailing list