[issue40335] Regression in multiline SyntaxError offsets
Pablo Galindo Salgado
report at bugs.python.org
Fri Apr 24 17:02:53 EDT 2020
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
With the old parser it works:
~/github/python/master master*
❯ ./python -X oldparser t.py
3.9.0a5+ (heads/master:503de7149d, Apr 24 2020, 22:02:28)
[GCC 9.3.0]
SyntaxError:
- line: 8
- offset: 8
- text: " '''\n\ndef bar():\n pass\n\ndef baz():\n '''quux'''\n"
~/github/python/master master*
❯ ./python t.py
3.9.0a5+ (heads/master:503de7149d, Apr 24 2020, 22:02:28)
[GCC 9.3.0]
SyntaxError:
- line: 8
- offset: 52
- text: " '''"
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40335>
_______________________________________
More information about the Python-bugs-list
mailing list