This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: finishing touches on __future__ support
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jhylton Nosy List: gvanrossum, jhylton, tim.peters
Priority: release blocker Keywords: patch

Created on 2001-03-21 23:51 by jhylton, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
diff.txt jhylton, 2001-03-21 23:51
Messages (4)
msg36168 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2001-03-21 23:51
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.
msg36169 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-03-22 00:04
Logged In: YES 
user_id=6380

After a cursory skim this looks right.

Note that the Windows main just calls Py_Main(argc, argv),
so it should automatically be getting the changes.

Go check it in!
msg36170 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-03-22 00:06
Logged In: YES 
user_id=31435

Windows should be fine, Jeremy -- but thanks for worrying 
about it <wink>.
msg36171 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2001-03-22 02:48
Logged In: YES 
user_id=31392

checked in (too many file to bother listing the rev numbers)
History
Date User Action Args
2022-04-10 16:03:53adminsetgithub: 34212
2001-03-21 23:51:12jhyltoncreate