dictionary comparison

Bengt Richter bokr at oz.net
Thu May 5 16:18:51 EDT 2005


On Thu, 5 May 2005 10:37:23 -0700, James Stroud <jstroud at mbi.ucla.edu> wrote:
[...]
We had the same impulse ;-)
(see my other post in this thread)
>
># use patch as value and version as key
??? seems the other way around (as it should be?)

>recc_dct = dict([x.split("-") for x in recc_ary])
>serv_dct = dict([x.split("-") for x in serv_ary])
>
But what about multiple revs for the same patch?

Regards,
Bengt Richter



More information about the Python-list mailing list