Reverting (key, value) pairs in a dictionary

Edward C. Jones edcjones at erols.com
Fri Oct 31 00:09:22 CET 2003


Shu-Hsien Sheu wrote:
> Hi,
> 
> How do you turn a dictionary of <original_key>: <original_value> into 
> <original_value>: <original_key>, when there is no duplicate values?

See http://members.tripod.com/~edcjones/MultiDict.py





More information about the Python-list mailing list