dictionary method question

dsavitsk dsavitsk at e-coli.net
Tue Apr 23 14:55:23 EDT 2002


for some dictionary d is there any relationship between the returns from
d.keys() and d.values()?  that is, to get them in some arbitrary but
matching order, do i need to loop over d.items() or can i count on a
similarity of the above? in small tests this seems to be the case.

thanks,

-doug





More information about the Python-list mailing list