This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author snoopyjc
Recipients snoopyjc
Date 2022-03-07.15:20:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646666426.33.0.722967640681.issue46947@roundup.psfhosted.org>
In-reply-to
Content
unicodedata.name gives ValueError for control characters, for example:

>>> unicodedata.name('\x00')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: no such name
>>> unicodedata.name('\t')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: no such name


Where unicodedata.lookup clearly knows the names for these characters:
>>> unicodedata.lookup('NULL')
'\x00'
>>> unicodedata.lookup('TAB')
'\t'
History
Date User Action Args
2022-03-07 15:20:26snoopyjcsetrecipients: + snoopyjc
2022-03-07 15:20:26snoopyjcsetmessageid: <1646666426.33.0.722967640681.issue46947@roundup.psfhosted.org>
2022-03-07 15:20:26snoopyjclinkissue46947 messages
2022-03-07 15:20:26snoopyjccreate