[Python-Dev] from future syntax changed (original) (raw)

Guido van Rossum guido at python.org
Tue Jan 31 05:54:22 CET 2006


It looks like the syntax for "from future import ..." changes in Python 2.5. I was playing around with Cheetah, and it stumbled over a file with the following structure:

comments

""" docstring """ author = "..." version = "..." from future import generators

Python 2.2 throug 2.4 accept this fine.

Perhaps the AST tree enforces stricter syntax for what can precede a future statement? I think this should be fixed.

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list