This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ronny.Pfannschmidt
Recipients Ronny.Pfannschmidt
Date 2011-05-30.14:54:56
SpamBayes Score 4.50591e-09
Marked as misclassified No
Message-id <1306767297.7.0.76540444561.issue12216@psf.upfronthosting.co.za>
In-reply-to
Content
>>> compile('def foo(', '', 'exec')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "", line 1
    def foo(
          ^
SyntaxError: unexpected EOF while parsing

vs

>>> compile('from __future__ import print_function\ndef foo(', '', 'exec')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "", line 2
    def foo(
          ^
SyntaxError: invalid syntax
History
Date User Action Args
2011-05-30 14:54:57Ronny.Pfannschmidtsetrecipients: + Ronny.Pfannschmidt
2011-05-30 14:54:57Ronny.Pfannschmidtsetmessageid: <1306767297.7.0.76540444561.issue12216@psf.upfronthosting.co.za>
2011-05-30 14:54:57Ronny.Pfannschmidtlinkissue12216 messages
2011-05-30 14:54:56Ronny.Pfannschmidtcreate