I know that sounds strange: usually we look up values by key, not keys. But suppose you have a strange key type that despite being "equal", is not identical in some fields, and you need to see those fields.
Is there a way of getting the key used by the dictionary, short of storing a reference to it in the value, or using a second dictionary? Thanks! -- https://mail.python.org/mailman/listinfo/python-list