block scope?

Alex Martelli aleax at mac.com
Sat Apr 7 19:43:45 EDT 2007


Steve Holden <steve at holdenweb.com> wrote:

> What do you think the chances are of this being accepted for Python 3.0?
> It is indeed about the most rational approach, though of course it does
> cause problems with dynamic namespaces.

What problems do you have in mind?  The compiler already determines the
set of names that are local variables for a function; all it needs to do
is diagnose an error or warning if the set of names for a nested
function overlaps with that of an outer one.

I shamefully admit that I haven't followed Python 3.0 discussions much
lately, so I don't really know what's planned on this issue.


Alex



More information about the Python-list mailing list