[Python-3000] Draft PEP for outer scopes

Fredrik Lundh fredrik at pythonware.com
Thu Nov 2 19:32:19 CET 2006


Talin wrote:

> If you change the behavior of 'global' to be the same as 'nonlocal' as 
> has been proposed, then this effectively becomes impossible - you can no 
> longer set any global that hasn't already been pre-declared.

of course you can, as long as it isn't shadowed in an intermediate scope.

are you sure you know how free variables are handled in today's Python?

</F>



More information about the Python-3000 mailing list