Python-dev summary: August 16-31

Andrew Kuchling akuchlin at mems-exchange.org
Mon Sep 4 17:02:41 EDT 2000


Carel Fellinger <cfelling at iae.nl> writes:
> > adds 'import name1 as name2' and 'from module import name1 as name2'
>
> Here we have a new keyword that isn't a keyword, that might as wel be
> used for that hidius print hack, but in that context it was deemed
> impossible. So what am I missing? (or are we being fooled:)

'as' isn't a true keyword, but instead is only accepted as part of the
import statement:

>>> import string as s
>>> as = 1
>>> print as
1
>>>

--amk



More information about the Python-list mailing list