Nested Scopes in Idle/PythonWin

Steve Holden sholden at holdenweb.com
Sun Apr 22 11:48:51 EDT 2001


"Greg Chapman" <glc at well.com> wrote in message
news:mailman.987881132.32671.python-list at python.org...
> It appears that nested scopes are not turned on by default in the
> interactive interpreters of Idle and PythonWin (using Python 2.1 under
> Windows 2000).  Since this feature is to be mandatory in the next release
of
> Python, it seems to me that it ought to be on by default (or at least that
> there should be some way to turn it on) in the interactive interpreters.
> After much staring at the source code, the following patch appears to me
to
> be the best way to enable nested scopes in Idle, but I don't much like it.
> I wonder if anyone else has a better idea.
>
Are you saying that IDLE won't correctly handle modules containing

    from __future__ import nested_scopes?

regards
 Steve






More information about the Python-list mailing list