Yes, my gmail client transformed unicodata . name to a url. I hope the mobile 
gmail client won't do it here.

Yes current version is 11. I noticed it after sending the mail, I've compared 
to the version 6 and all my arguments are still valid (they just added some 
characters in the "correction" set).

As I'm at, I mentionned the ffef character but we don't care about it because 
it already has a name, so that's mostly a control character issue.

Yes a new function name is also what I prefer but I thought it would clutter 
the unicodata namespace.

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.

However, having a standard canonical name for all character in the stdlib would 
help people choosing the same convention. A new function like "canonical_name" 
or a shorter name would be an idea.

Instead of name(char, abbreviation=True, correction=False) I would have 
Imagined a "default_behavior" ala csv.dialect such that name(char, 
default_bevior=unicodata.first_abbreviation) would use my algorithm. 
first_abbreviation would be a enum, or like in csv.dialect a class like : class 
first_abbreviation: abbreviation = True; correction = False; ...

But I guess that's too specific, abbreviation=True would mean "take the first 
abbreviation in the list".
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to