[Python-ideas] Unicode Name Aliases keyword argument abbreviation in unicodedata.name for missing names

Robert Vanden Eynde robertvandeneynde at hotmail.com
Thu Jul 12 08:33:36 EDT 2018


I like your alias(...) function, with that one, an application could code my function like try name(x) expect alias(x).abbreviations[0]. If the abbreviation list is sorted by AdditionToUnicodeDate.

Or

try:
    return name(x)
expect:
     if category(x) == 'Cc':
        return alias(x).abbreviations[0]
    else:
        raise

That would then raise only for unassigned codepoints.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180712/4106231f/attachment-0001.html>


More information about the Python-ideas mailing list