[dictionary] how to get key by item

Skip Montanaro skip at pobox.com
Mon Dec 13 22:10:24 EST 2004


    Tim> Python will do what you tell it. In the above case, it will build a
    Tim> list.

Whoops, yeah.  I called .iteritems() then forgot to use a generator
expression...

Skip



More information about the Python-list mailing list