[issue13832] tokenization assuming ASCII whitespace; missing multiline case

Jim Jewett report at bugs.python.org
Fri Jan 20 16:58:20 CET 2012


Jim Jewett <jimjjewett at gmail.com> added the comment:

Ignoring non-ascii whitespace is defensible, and I agree that it should match the rest of the parser.  Ignoring 2nd lines is still a problem, and supposedly part of what got fixed.  Test case:

s="""x=5  # comment
x=6
"""
compile(s, "<testbadsingle>", 'single')

----------

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


More information about the Python-bugs-list mailing list