New submission from Alexander Belopolsky:

Python is aware of unicode codepoint aliases, but unicodedata does not provide 
a way to find aliases of a given codepoint:

>>> ucd.lookup('ESCAPE') == '\N{ESCAPE}'
True
>>> ucd.lookup('RS') == '\N{RS}'
True

but

>>> ucd.name('\N{ESCAPE}')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: no such name


>>> ucd.name('\N{RS}')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: no such name

----------
messages: 191300
nosy: belopolsky
priority: normal
severity: normal
status: open
title: Unicodedata module should provide access to codepoint aliases
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18234>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to