Nested scope suggestion
Michael Hudson
mwh at python.net
Wed Nov 28 12:25:51 EST 2001
John Thingstad <john.thingstad at chello.no> writes:
> I am somwhat upset that is seems impossible to to set variales in
> higher levels of the scope.
[...]
> Any chance of this functionality being added to nested scopes?
I doubt it. See PEP 227:
http://python.sourceforge.net/peps/pep-0227.html
Especially the "Rebinding names in enclosing scopes" section near the
end.
Cheers,
M.
--
Imagine if every Thursday your shoes exploded if you tied them
the usual way. This happens to us all the time with computers,
and nobody thinks of complaining. -- Jeff Raskin
More information about the Python-list
mailing list