Pablo Torres Navarrete <[email protected]> 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 <[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