[Python-3000] Draft PEP for outer scopes
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Nov 3 02:53:17 CET 2006
Talin wrote:
> Right now, you can create a global variable from within a scope, even if
> that variable hasn't been declared yet:
That doesn't seem like a good practice from a
readability point of view to me, but in any
case, there's no reason it couldn't continue
to be supported:
If you don't find any assigment to the name
in an enclosing scope, just assume it's
module-level.
--
Greg
More information about the Python-3000
mailing list