[Python-Dev] Explicit Lexical Scoping (pre-PEP?) (original) (raw)

Guido van Rossum guido at python.org
Wed Jul 5 05:49:10 CEST 2006


On 7/5/06, Phillip J. Eby <pje at telecommunity.com> wrote:

At 12:18 AM 7/5/2006 +0200, Guido van Rossum wrote: >I don't see anything else that's attractive. The realistic options are: > >1. do nothing >2. extend global's meaning >3. add outer keyword

Did you also consider and reject: * Alternate binding operators (e.g. ":=", ".=", etc.)

Brr.

* Alternate spelling of outer names when binding (e.g. ".x = whatever" to bind an outer x)

We looked at and rejected "globals.x = whatever". I think the same reasoning applies here.

If so, then these should probably be added to the "rejected alternatives" for Py3K so they don't get rehashed.

Georgbot?

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list