Skip to content

SyntaxError: (unicode error) messages are missing byte positions #1348

@slozier

Description

@slozier

For example, "\N" reports

SyntaxError: (unicode error) malformed \N character escape

instead of

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: malformed \N character escape

This also affects the f-string versions (f"\N").

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions