[Python-Dev] Fast access to __builtins__

M.-A. Lemburg mal@lemburg.com
Fri, 28 Mar 2003 09:38:28 +0100


Guido van Rossum wrote:
> I'd be happy to proclaim that doing something like
> 
>   import X
>   d = X.__dict__
>   d["spam"] = 42    # or  exec "spam = 42" in d 
> 
> is always prohibited.

That would break lazy module imports such as the one I'm using
in mx.Misc.LazyModule.py.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Software directly from the Source  (#1, Mar 28 2003)
 >>> Python/Zope Products & Consulting ...         http://www.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
Python UK 2003, Oxford:                                      4 days left
EuroPython 2003, Charleroi, Belgium:                        88 days left