[Python-Dev] RE: Unicode character name hashing
Sun, 16 Jul 2000 19:58:23 +0200
Tim Peters wrote:
> [hash function in unicodename]
> > ...on the other hand, it currently assumes that an "int" is at
> > least 32 bits.
> > should I change this?
> Absolutely! "long" is the only way current C has to spell "at least 32".
Note that Unicode code which needs enough bits to hold a UCS4
value should always use the Py_UCS4 type (see unicodeobject.h)...
any changes needed to assure the 32-bit nature should then
be made to the Py_UCS4 typedef.
Python Pages: http://www.lemburg.com/python/