[Python-Dev] Named Unicode Characters

M.-A. Lemburg mal@lemburg.com
Wed, 28 Jun 2000 18:57:35 +0200


I've just checked in the patches by Bill Tutt, which add
support for \N{NAMED UNICODE CHARACTERS}. The new escape
code is available per default in the standard unicode-escape
codec. The (big) hash table needed to drive the mapping
is loaded on demand to reduce memory overhead.

The patch also includes a new tool called perfecthash which
is used to generate the hash table (and function) from 
names to ordinals. I'm sure this can be of use in other
areas too... but it needs some more work to become more
generic (currently you have to edit the source code to generate
other mapping modules).

Thanks to Bill Tutt -- this is great work !

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/