Message6685

Author glyphobet
Recipients glyphobet
Date 2011-10-27.10:22:32
SpamBayes Score 2.3089815e-05
Marked as misclassified No
Message-id <1319710953.26.0.695847312054.issue1812@psf.upfronthosting.co.za>
In-reply-to
Content
The attached Jython code, with a comment following some code at the same indentation level and no newline at the end of the file, causes a SyntaxError:

  File "../jythonfun.py", line 4
    # comment
            ^
SyntaxError: required (...)+ loop did not match anything at character '<EOF>'


With a newline at the end of the file, it's fine. In CPython, it's fine with or without the trailing newline.
History
Date User Action Args
2011-10-27 10:22:33glyphobetsetrecipients: + glyphobet
2011-10-27 10:22:33glyphobetsetmessageid: <1319710953.26.0.695847312054.issue1812@psf.upfronthosting.co.za>
2011-10-27 10:22:33glyphobetlinkissue1812 messages
2011-10-27 10:22:32glyphobetcreate