[issue1184112] Missing trailing newline with comment raises SyntaxError

2010-05-19 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org 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 rep...@bugs.python.org
http://bugs.python.org/issue1184112
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1184112] Missing trailing newline with comment raises SyntaxError

2009-06-07 Thread Pablo Torres Navarrete

Pablo Torres Navarrete tn.pa...@gmail.com 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 stdin, line 1, in module
  File string, line 4
# comment
   ^
SyntaxError: invalid syntax


--
nosy: +ptn

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1184112
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1184112] Missing trailing newline with comment raises SyntaxError

2009-06-07 Thread Pablo Torres Navarrete

Changes by Pablo Torres Navarrete tn.pa...@gmail.com:


--
versions: +Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1184112
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-easy interpreter core problem.

--
components: +Interpreter Core -Documentation

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1184112
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1184112
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1184112
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
components: +Documentation -Interpreter Core
keywords: +easy
nosy: +georg.brandl
type:  - behavior
versions: +Python 2.5, Python 2.6, Python 3.0

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1184112
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com