Closed
Closed
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltopic-unicodetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
In #28150, the carets' positions are compatible with wide unicode characters. I believe the colors should also be compatible.
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Windows, macOS
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltopic-unicodetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
shenxianpeng commentedon Feb 18, 2025
Not sure if this borderline case
啊哈 = 1/0#######is necessary. If use Unicode to replace Chinese characters, there is no color shift.Fix traceback color output with unicode characters
Fix traceback color output with unicode characters
gh-130273: Fix traceback color output with unicode characters (GH-142529
pythongh-130273: Fix traceback color output with unicode characters (p…