nested scopes
Michael Hudson
mwh at python.net
Mon Feb 18 06:54:30 EST 2002
"Emile van Sebille" <emile at fenx.com> writes:
> "Nicola Kluge" <NKluge at optonline.net> wrote in message
> news:zsTb8.129039$th4.37009591 at news02.optonline.net...
> > Nevermind, I found that it doesn't work in IDLE, but it works in
> cmdline
> > Python.
> >
>
> from __future__ import nested_scopes needs to be the first thing done,
> and in idle you never get to be first...
>
> It does work, of course, in idle under 2.2.
__future__ statements work in idle under 2.2, too (i.e. generators,
future division).
Cheers,
M.
--
... when all the programmes on all the channels actually were made
by actors with cleft pallettes speaking lines by dyslexic writers
filmed by blind cameramen instead of merely seeming like that, it
somehow made the whole thing more worthwhile. -- HHGTG, Episode 11
More information about the Python-list
mailing list