Skip to content

Traceback colors are shifted when the line contains wide unicode characters #130273

Open
@HarryLHW

Description

@HarryLHW

Bug report

Bug description:

Image

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

No one assigned

    Labels

    stdlibPython modules in the Lib dirtopic-replRelated to the interactive shelltopic-unicodetype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions