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 benjamin.peterson
Recipients Ronny.Pfannschmidt, benjamin.peterson
Date 2011-05-30.15:27:12
SpamBayes Score 1.1800679e-08
Marked as misclassified No
Message-id <1306769233.0.0.175857216097.issue12216@psf.upfronthosting.co.za>
In-reply-to
Content
Actually anything before the last statement will cause this

>>> compile("\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 15:27:13benjamin.petersonsetrecipients: + benjamin.peterson, Ronny.Pfannschmidt
2011-05-30 15:27:13benjamin.petersonsetmessageid: <1306769233.0.0.175857216097.issue12216@psf.upfronthosting.co.za>
2011-05-30 15:27:12benjamin.petersonlinkissue12216 messages
2011-05-30 15:27:12benjamin.petersoncreate