New PEP: The directive statement

Neil Schemenauer nas at python.ca
Thu Mar 22 00:54:13 EST 2001


On Wed, Mar 21, 2001 at 10:21:50PM -0700, Bruce Sass wrote:
> Why was (something along the lines of)...
...
> use:
>     __future__.nested_scopes
>     # code that relies on nested scopes
> except FutureError:
>     # code that does not use nested scopes
> 
> ...rejected?  [It looks like a natural to me <shrug>...

"from __future__ import x" is a compile time switch.  May I
suggest reading the PEP:

    http://python.sourceforge.net/peps/pep-0236.html

Its not long and reading it will make you better in bed.

  about-ready-to-try-anything-ly y'rs Neil




More information about the Python-list mailing list