[Python-Dev] closure semantics
Guido van Rossum
guido at python.org
Tue Oct 21 20:20:15 EDT 2003
> Another idea: We could replace the function globals() with an object
> that provides __call__ for backwards compatibility, but also has a
> special __setattr__. Then global assignment would be 'globals.x = 23'.
> Would this be possible?
Yes, I just proposed this in my previous response. :-)
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list