[issue46947] unicodedata.name gives ValueError for control characters

Joe Cool report at bugs.python.org
Mon Mar 7 20:21:08 EST 2022


Joe Cool <snoopyjc at gmail.com> added the comment:

My recommendation would be to add a keyword parameter, defaulting to False, to name(), something like give_full_alias, or maybe errors=“give_full_alias” like the IO functions.

In the meantime, as the author of perllib, I had to make my own dict to return to the user the same thing perl does, which is the full alias for these.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46947>
_______________________________________


More information about the Python-bugs-list mailing list