Skip to content

Plus-minus sign had an invalid Python named character #11

@bzamecnik

Description

@bzamecnik

https://utf8.xyz/plus-minus-sign

shows:

Python: \N{plus minus sign}, but using that within a string fails with:

print("\N{plus minus sign}")
    "\N{plus minus sign}"
    ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-18: unknown Unicode character name

The correct name is "\N{plus-minus sign}" or properly capitalized"\N{PLUS-MINUS SIGN}".

There could possibly be other characters with a similar problem.

Anyway, thanks for a beautiful service! 🙏 🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions