[Python-Dev] PEP for Better Control of Nested Lexical Scopes (original) (raw)

Samuele Pedroni pedronis at strakt.com
Wed Feb 22 22:32:01 CET 2006


Greg Ewing wrote:

Jeremy Hylton wrote:

The names of naming statements are quite hard to get right, I fear. My vote goes for 'outer'. And if this gets accepted, remove 'global' in 3.0.

In 3.0 we could remove 'global' even without 'outer', and make module global scopes read-only, not rebindable after the top-level code has run (i.e. more like function body scopes). The only free-for-all namespaces would be class and instance ones. I can think of some gains from this. <.3 wink>



More information about the Python-Dev mailing list