]> granicus.if.org Git - python/commit
bpo-34683: Make SyntaxError column offsets consistently 1-indexed (gh-9338)
authorAmmar Askar <ammar_askar@hotmail.com>
Mon, 24 Sep 2018 21:12:49 +0000 (17:12 -0400)
committerGuido van Rossum <guido@python.org>
Mon, 24 Sep 2018 21:12:49 +0000 (14:12 -0700)
commit025eb98dc0c1dc27404df6c544fc2944e0fa9f3a
treead93cb6963abd43430766fa85b629b2d5896889b
parent223e501fb9c2b6ae21b96054e20c4c31d94a5d96
bpo-34683: Make SyntaxError column offsets consistently 1-indexed (gh-9338)

Also point to start of tokens in parsing errors.

Fixes bpo-34683
Lib/test/test_exceptions.py
Lib/test/test_future.py
Lib/test/test_global.py
Lib/test/test_support.py
Lib/test/test_symtable.py
Misc/NEWS.d/next/Core and Builtins/2018-09-15-19-32-34.bpo-34683.msCiQE.rst [new file with mode: 0644]
Parser/parsetok.c
Python/ast.c
Python/compile.c
Python/future.c
Python/symtable.c