"as" keyword woes

Martin P. Hellwig martin.hellwig at dcuktec.org
Wed Dec 3 17:02:24 EST 2008


Warren DeLano wrote:
> A bottom line / pragmatic question... hopefully not a FAQ.
> 
> Why was it necessary to make "as" a reserved keyword?  
<cut>
Because it can be used at the import statement to let the imported thing 
be known under another name?
Something like:

 >>> import xml.etree.ElementTree as ET

-- 
mph



More information about the Python-list mailing list