key - key pairs

Scott David Daniels Scott.Daniels at Acm.Org
Fri Jun 24 02:51:54 CEST 2005

Ivan Van Laningham wrote:
> Well, Florian said, "using two different keys, both unique"; if that is
> true, then a single key maps to a single value & vice versa.  
Of course you are right.  I got caught up in the problem I imagined (the
pair being unique).

 > ... subclass dict and provide get/set that always insert the value
 > as a key.  So dict["string"]=time also means dict[time]="string".
> Or am I missing something?
Yup, getting to min and max.  I presume that will be key-dependent.

--Scott David Daniels
Scott.Daniels at Acm.Org

More information about the Python-list mailing list