[issue30772] If I make an attribute "[a unicode version of B]", it gets assigned to "[ascii B]", and so on.

Matthew Barnett report at bugs.python.org
Mon Jun 26 15:49:27 EDT 2017


Matthew Barnett added the comment:

See PEP 3131 -- Supporting Non-ASCII Identifiers

It says: """All identifiers are converted into the normal form NFKC while parsing; comparison of identifiers is based on NFKC."""

>>> import unicodedata
>>> unicodedata.name(unicodedata.normalize('NFKC', '\N{MATHEMATICAL DOUBLE-STRUCK CAPITAL B}'))
'LATIN CAPITAL LETTER B'

----------
nosy: +mrabarnett

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30772>
_______________________________________


More information about the Python-bugs-list mailing list