[Python-Dev] [patch #100889] a smaller unicode name database
Fredrik Lundh
Fredrik Lundh" <effbot@telia.com
Sat, 15 Jul 2000 20:00:48 +0200
> my unicode database compression project has resulted in its first
> patch:
>=20
> =
https://sourceforge.net/patch/index.php?func=3Ddetailpatch&patch_id=3D100=
899&group_id=3D5470
two additional comments:
first, the patch was too large for sourceforge (>512000 bytes), so
I've uploaded it to the secret effbot site instead:
http://w1.132.telia.com/~u13208596/uninames-patch.txt
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
else?
cheers /F