[issue27496] unicodedata.name() doesn't have names for control characters

Zack Weinberg report at bugs.python.org
Tue Jul 12 09:10:49 EDT 2016


New submission from Zack Weinberg:

unicodedata.name() doesn't have name information for the C0 and C1 control characters.  To see this, run

pprint.pprint(["U+{:04X} {}".format(n, unicodedata.name(chr(n), "<missing>")) for n in range(256)])

and you will observe <missing> printed for U+0000 through U+001F and U+007F through U+009F.  These characters do have official Unicode names and they should be known to name().

I may see if I can come up with a patch for this one, in my copious free time.

----------
components: Library (Lib)
messages: 270242
nosy: zwol
priority: normal
severity: normal
status: open
title: unicodedata.name() doesn't have names for control characters
type: behavior
versions: Python 3.5

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


More information about the Python-bugs-list mailing list