Skip to content

Parse long strings with \U codes. #135735

Closed as not planned
Closed as not planned
@mjbmon

Description

@mjbmon

Bug report

Bug description:

# The following parses just fine:
line1="""
this has \u21A9 in it
"""
# This fails to parse:
line2="""
this has \U21A9 in it
"""

The error message is unicodeescape' codec can't decode bytes in position...

CPython versions tested on:

3.13

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions