[Python-ideas] Interrogate alternate namespace keyword and concept

Nick Coghlan ncoghlan at gmail.com
Fri Aug 14 10:11:09 CEST 2009

Steven D'Aprano wrote:
> I don't think there are any problems with a Pascal-style 'with' 
> statement that couldn't be overcome, but I don't think the benefit is 
> great enough to create a new keyword for it. Can you explain in more 
> detail why this proposed feature is useful?

Also, if you just want to be able to chain multiple namespaces together,
you can do that by implementing an appropriate class with a custom
__getattr__ method.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-ideas mailing list