Skip to content

[3.14] gh-156894: Fix the position of syntax errors which cover a range (GH-156901) - #156927

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-59a6913-3.14
Sep 4, 2026
Merged

[3.14] gh-156894: Fix the position of syntax errors which cover a range (GH-156901)#156927
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-59a6913-3.14

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

The callers of _PyTokenizer_syntaxerror_known_range() pass columns in bytes, but SyntaxError.offset and end_offset are columns in characters.
(cherry picked from commit 59a6913)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

pythonGH-156901)

The callers of _PyTokenizer_syntaxerror_known_range() pass columns in bytes,
but SyntaxError.offset and end_offset are columns in characters.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 59a6913)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant