"as" keyword woes

Martin P. Hellwig martin.hellwig at dcuktec.org
Wed Dec 3 23:04:58 CET 2008


Martin P. Hellwig wrote:
> 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
> 
Sorry forget about the post, you know full well why not :-)

-- 
mph



More information about the Python-list mailing list