[issue1184112] Missing trailing newline with comment raises SyntaxError

2010-05-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: This has been fixed in 2.7 and 3.2. -- nosy: +benjamin.peterson resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue1184112] Missing trailing newline with comment raises SyntaxError

2009-06-07 Thread Pablo Torres Navarrete
Changes by Pablo Torres Navarrete : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1184112] Missing trailing newline with comment raises SyntaxError

2009-06-07 Thread Pablo Torres Navarrete
Pablo Torres Navarrete added the comment: Confirmed on versions 2.6.2, 3.0.1 and 3.1rc1. On the three of them, I tried this: >>> import parser >>> test = 'def foo():\n\tpass\n\n# comment' >>> parser.suite(test) Traceback (most recent call last): File "", line 1, in File "", line 4 #

[issue1184112] Missing trailing newline with comment raises SyntaxError

2008-04-18 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Yeah, it's actually still blowing up for me to. I have no idea what I actually tested when I thought it was working in 2.6/3.0 - I must have managed to sneak an extra carriage return into the test string. So reverting back to marking it as a non

[issue1184112] Missing trailing newline with comment raises SyntaxError

2008-04-17 Thread Inyeol Lee
Inyeol Lee <[EMAIL PROTECTED]> 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

[issue1184112] Missing trailing newline with comment raises SyntaxError

2008-04-09 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: The exec example still presents me a syntax error in 2.5.2. _ Tracker <[EMAIL PROTECTED]> _ __

[issue1184112] Missing trailing newline with comment raises SyntaxError

2008-04-08 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: As of 2.5.1, a missing trailing newline no longer causes a Syntax Error, making the second part of the caveat in the documentation unnecessary. Changing to a documentation bug applicable to 2.5+. -- assignee: -> georg.brandl component