Nested scope suggestion

Michael Hudson mwh at
Wed Nov 28 18:25:51 CET 2001

John Thingstad <john.thingstad at> 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:

Especially the "Rebinding names in enclosing scopes" section near the


  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