Ian Kelly <ian.g.ke...@gmail.com>: > I don't think that it's fundamentally broken. A simple example would > be the int 3, vs. the float 3, vs. the Decimal 3. All of them compare > equal to one another, but they are distinct values, and sometimes it > might be useful to be able to determine which one is actually a key in > the dict.
One possibility is to enter the key on the value side as well: d[key] = (key, value) ... canonical_key, value = d[key] Marko -- https://mail.python.org/mailman/listinfo/python-list