A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/039684.html below:

[Python-Dev] Alternate notation for global variable assignments

[Python-Dev] Alternate notation for global variable assignments [Python-Dev] Alternate notation for global variable assignmentsAlex 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!


Alex


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4