[dictionary] how to get key by item

Skip Montanaro skip at pobox.com
Tue Dec 14 16:08:49 CET 2004

    Ola> If some keys has the same value as the item this will cause
    Ola> problems because keys in your result dictionary can be
    Ola> overwritten.

That's why I said, "assuming your dictionary defines a one-to-one


More information about the Python-list mailing list