nested scopes
John J. Lee
phrxy at csv.warwick.ac.uk
Fri Feb 2 10:52:45 EST 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?
John
More information about the Python-list
mailing list