[issue6363] __future__ statements break doctest

2009-07-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r73782 and r73783. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6363] __future__ statements break doctest

2009-06-30 Thread Poor Yorick
Poor Yorick added the comment: here is a monkey patch to work around the problem: import __future__ import doctest if sys.version_info.major > 2: _extract_future_flags_old = doctest._extract_future_flags def _extract_future_flags(globs): flags = _extract_future_f

[issue6363] __future__ statements break doctest

2009-06-30 Thread Poor Yorick
Poor Yorick 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', '', 'single',

[issue6363] __future__ statements break doctest

2009-06-28 Thread Poor Yorick
New submission from Poor Yorick : (this error also occurs with "print_function") 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. >>> from __future__ import unicode_literals >>> import docte