[Python-3000] Draft PEP for outer scopes

Fredrik Lundh fredrik at pythonware.com
Thu Nov 2 10:14:07 CET 2006


Steven Bethard wrote:

> I don't think that'll really be worth it.  I'd be amazed if people
> didn't expect it to mean "top-level".

as anyone who's spent enough time on c.l.python knows, people expect it 
to mean "application global".  it isn't.

alternatively, they expect it to be a scope specifier to be used when 
creating the variable, rather than when referring to it.  it isn't.

the exact meaning of "global" is one of the well-known "you only need to 
learn this once" things in Python.  a reinterpreted global would fall in 
the same category.

</F>



More information about the Python-3000 mailing list