[issue6363] __future__ statements break doctest

Poor Yorick report at bugs.python.org
Tue Jun 30 16:18:02 CEST 2009


Poor Yorick <pooryorick at users.sourceforge.net> added the comment:

It seems that "compile" does not recognize some flags:

Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) [MSC v.1500 32 bit
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import __future__
>>> compile('a=5', '<string>', 'single',
__future__.print_function.compiler_flag
)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: compile(): unrecognised flags

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6363>
_______________________________________


More information about the Python-bugs-list mailing list