nested scopes

John J. Lee phrxy at
Fri Feb 2 16:52:45 CET 2001

On Fri, 2 Feb 2001, Robin Becker wrote:

> Is it really true that J Hylton's nested scopes will cause code like
> def bingo():
>   from string import *
>   ....
> to be declared bad? I'm already against nested scopes, but requiring
> this to be wrong seems awful. We seem to be replacing a simple 2-level
> system by a more complex one & restrictions.

Are nested scopes actually going to end up in Python proper, then?  As
opposed to remaining as an optional patch?

And why should the above become bad rather than just import into the
appropriate namespace?


More information about the Python-list mailing list