[Python-ideas] Support Unicode code point notation
Stefan Behnel
stefan_ml at behnel.de
Sun Jul 28 08:21:49 CEST 2013
Steven D'Aprano, 28.07.2013 05:43:
> Another suggestion which was made is:
>
> \N{U+xxxx}
+1
> That could be extended to allow multiple space-separated code points:
>
> \N{U+xxxx U+yyyy U+zzzzz}
>
> or
>
> \N{U+xxxx yyyy zzzzz}
If I were up for bike shedding, I'd suggest to rather use comma separated
code point values here. I don't think I have a preference regarding the
repetition of the "U+" prefix (it looks less clear without it and feels
redundant if you require it), but thinking of the cases where a sequence of
two or more code points combines into one character makes it seem like a
useful thing to support in general.
Stefan
More information about the Python-ideas
mailing list