> Well, sort of. It should be done in such a way that Unicode > strings which only use the lower byte produce the same hash > value as normal 8-bit strings -- is this the case for the > above code ? I already checked it -- it does, for ASCII or Latin-1 as the default encoding. Good enough for me. --Guido van Rossum (home page: http://dinsdale.python.org/~guido/)