Unicode and dictionaries

Martin v. Loewis martin at v.loewis.de
Sun Jan 17 04:49:44 EST 2010


> This ought to be a bug; objects that compare equal and are hashable
> must have the same hash code.

It's not a bug. Changing the default encoding is not really supported,
let alone changing it to anything but latin-1, precisely for the reasons
you discuss.

If you do change the default encoding, Python *will* break. This has
been discussed many times, but some people still think they know better.

Regards,
Martin



More information about the Python-list mailing list