[Python-Dev] from future syntax changed (original) (raw)
Guido van Rossum guido at python.org
Tue Jan 31 05:54:22 CET 2006
- Previous message: [Python-Dev] "DOS" error codes, WindowsError, and errno
- Next message: [Python-Dev] from __future__ syntax changed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/)
- Previous message: [Python-Dev] "DOS" error codes, WindowsError, and errno
- Next message: [Python-Dev] from __future__ syntax changed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]