block scope?

Neal Becker ndbecker2 at gmail.com
Fri Apr 6 12:07:21 EDT 2007


One thing I sometimes miss, which is common in some other languages (c++),
is idea of block scope.  It would be useful to have variables that did not
outlive their block, primarily to avoid name clashes.  This also leads to
more readable code.  I wonder if this has been discussed?




More information about the Python-list mailing list