[Python-Dev] from __future__ syntax changed

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

AltStyle によって変換されたページ (->オリジナル) /