-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
The column marker/caret offset does not appear to account for characters with a display width of two.
Does not appear to be REPL related. The SyntaxError output is the same when running python test.py
Current behavior
>>> 女女女=1; 女女女/
File "<python-input-0>", line 1
女女女=1; 女女女/
^
SyntaxError: invalid syntaxThe column marker/caret does not point to the column after the /
Expected behavior
>>> 女女女=1; 女女女/
File "<python-input-0>", line 1
女女女=1; 女女女/
^
SyntaxError: invalid syntaxThe column marker/caret points to the column after the /
CPython versions tested on:
3.14.1, 3.15.0a2
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error