[issue13832] tokenization assuming ASCII whitespace; missing multiline case

Benjamin Peterson report at bugs.python.org
Fri Jan 20 17:00:44 CET 2012


Benjamin Peterson <benjamin at python.org> added the comment:

$ ./python 
Python 3.3.0a0 (default:50a4af2ca654+, Jan 20 2012, 10:59:48) 
[GCC 4.5.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> s="""x=5  # comment
... x=6
... """
>>> compile(s, "<blah>", "single")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<blah>", line 1
    x=5  # comment
                 ^
SyntaxError: multiple statements found while compiling a single statement

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13832>
_______________________________________


More information about the Python-bugs-list mailing list