[Python-Dev] getting rid of ucnhash
Tue, 23 Jan 2001 19:03:42 +0100
It's probably just me, but the names of the two unicode
modules tend to irritate me:
> ls u*.pyd
(the former contains names, the latter data)
I've been meaning to rename the former, but I just realized
that it might be better to get rid of it completely, and move
its functionality into the unicodedata module.
The result is a single 200k unicodedata module, which con-
tains the name database as well as two new functions:
name(character [, default]) => map unicode
character to name. if the name doesn't exist,
return the default object, or raise ValueError.
lookup(name) => unicode character
(or raise KeyError if it doesn't exist)
Should I check it in now, change the names/semantics and check
it in, or post it to sourceforge?