Python-dev summary: August 16-31

Andrew Kuchling akuchlin at
Mon Sep 4 23:02:41 CEST 2000

Carel Fellinger <cfelling at> 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


More information about the Python-list mailing list