[Patches] [ python-Patches-410407 ] finishing touches on __future__ support

noreply@sourceforge.net noreply@sourceforge.net
Wed, 21 Mar 2001 15:51:12 -0800


Patches item #410407, was updated on 2001-03-21 15:51
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=410407&group_id=5470

Category: core (C code)
Group: None
Status: Open
Priority: 8
Submitted By: Jeremy Hylton (jhylton)
Assigned to: Guido van Rossum (gvanrossum)
Summary: finishing touches on __future__ support

Initial Comment:
This patch threads nested_scopes flags throughout the
interpreter (mostly pythonrun.c) to support execfile,
exec, and compile as described in PEP 236.

It also supports -i in the natural way.  If you run
python -i foo.py and foo.py contains a future
statement, that future statement is still in effect
when you reach the interactive interpreter prompt.

There are a mess of new functions that now take a
PyCompilerFlags * argument.  It's a total mess, but we
hopefully we can remove it all as soon as we release
2.2.  It's only necessary for 2.1 to support future
nested scopes.

Note that the Windows main.c may also need to be
modified.  I've got no idea if it has something like
-i.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=410407&group_id=5470