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

Delaney, Timothy (Tim) tdelaney at avaya.com
Fri Aug 4 01:24:12 CEST 2006


M.-A. Lemburg wrote:

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

I'd definitely consider a UnicodeError to be an indication that two
objects are not equal. At the very least, in the context of a dictionary
lookup.

Tim Delaney


More information about the Python-Dev mailing list