[Python-Dev] Alternate notation for global variable assignments

Alex Martelli aleaxit at yahoo.com
Tue Oct 28 04:31:38 EST 2003

On Tuesday 28 October 2003 01:11 am, Barry Warsaw wrote:
> What I really want is access to a namespace, and then all the normal
> Python attribute access notations just work.  They're one honking great
> idea after all.

Yes, all in all this does remain my preference, too.  I'd take stropping (or
"keyword stropping" a la Greg's "outer x") rather than declarative stuff,
but just getting a namespace (in ways the compiler could recognize,
i.e. by magicnames such as __me__) and then using __me__.x=23
would require no new syntax and be maximally obvious.  Sigh.

> This was behind the "import __me__" suggestion for access to module
> globals.  Why can't we have something similar for nested functions?

And why can't we have "import __me__" too?  Ah well!


More information about the Python-Dev mailing list