[Python-Dev] statically nested scopes
Wed, 1 Nov 2000 16:20:08 -0500 (EST)
Thanks. I expect there is very little code that depends on this sort
of behavior, since it is confusing to read. Many readers,
particularly novices, could reasonably expect Python to print 2 now.
As I explained to MAL, I think we would need to provide a code
analysis tool that identified these problems. It's probably helpful
to generate warning about this right now, since it's rather