[Python-Dev] [patch #100889] a smaller unicode name database
Fredrik Lundh" <firstname.lastname@example.org
Sat, 15 Jul 2000 20:00:48 +0200
> my unicode database compression project has resulted in its first
two additional comments:
first, the patch was too large for sourceforge (>512000 bytes), so
I've uploaded it to the secret effbot site instead:
second, the uninames module provides two public Python functions:
getname(code) returns the character name corresponding to
the given character code, or None if the name is not known.
getcode(name) returns the character code for the given character
name. again, it returns None if the code is not known.
Q: should I raise exceptions instead of returning None?
Q: what other functions would be useful? getallnames()? anything