Unicode and dictionaries

Martin v. Loewis martin at v.loewis.de
Sun Jan 17 10:49:44 CET 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.


More information about the Python-list mailing list