[Python-Dev] unicode hell/mixing str and unicode as dictionary keys

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Aug 4 03:51:32 CEST 2006


M.-A. Lemburg wrote:

> Perhaps we ought to add an exception to the dict lookup mechanism
> and continue to silence UnicodeErrors ?!

Seems to be that comparison of unicode and non-unicode
strings for equality shouldn't raise exceptions in the
first place.

--
Greg


More information about the Python-Dev mailing list