[Python-Dev] Dicts are broken Was: unicode hell/mixing str and unicode asdictionarykeys

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Aug 9 03:43:32 CEST 2006


M.-A. Lemburg wrote:

> Hiding programmer errors is not making life easier in the
> long run, so I'm -1 on having the equality comparison return
> False.

I don't see how this is greatly different from, e.g.

   [1, 2] == (1, 2)

returning False. Comparing things of different types
may or may not indicate a bug in the code as well,
but we don't seem to worry that it doesn't raise an
exception.

--
Greg


More information about the Python-Dev mailing list