[Python-Dev] future and present
David Ascher
DavidA@ActiveState.com
Fri, 10 Aug 2001 14:31:29 -0700
Guido van Rossum wrote:
>
> > If a script has
> > from __future__ import nested_scopes
> > and is run by Python 2.2, should the interpreter complain?
>
> Of course not! The whole point of the future statement is that it
> should be harmless once you're *in* that future (unless the future
> feature ends up retracted -- think of it as an alternate universe, a
> side effect of time machine misuse :-).
Although there could be a warning (off by default) in 2.3 or whenever to
let users know that the code is no longer needed. People tend to cut &
paste and reuse code from others, without always knowing why. Noops
should be culled from code as a general rule =).
--david