[issue1184112] Missing trailing newline with comment raises SyntaxError

Inyeol Lee report at bugs.python.org
Fri Apr 18 00:11:34 CEST 2008


Inyeol Lee <inyeol.lee at gmail.com> added the comment:

Missing trailing newline still triggers error as of 2.5.1:

>>> import parser
>>> parser.suite("pass\n ")
IndentationError: unexpected indent
>>> parser.suite("if True:\n pass\n ")
SyntaxError: invalid syntax

----------
nosy: +inyeollee

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1184112>
_____________________________________


More information about the Python-bugs-list mailing list