[Eyal Lotem] > Playing around with nested_scopes from __future__ (in Python 2.1), I have > encountered very unexpected behaviour. > ... Then I bet you didn't read PEP 227, "Statically Nested Scopes": http://python.sf.net/peps/pep-0227.html Read that first; all that you raised is covered there.