New submission from Joe Cool <snoop...@gmail.com>:
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' ---------- components: Library (Lib) messages: 414672 nosy: snoopyjc priority: normal severity: normal status: open title: unicodedata.name gives ValueError for control characters type: behavior versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46947> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com