keys and values lining up

Nathan Clegg nathan at islanddata.com
Mon Sep 27 19:03:53 EDT 1999


If d is a dict, am I guaranteed that d.keys() and d.values() will line up,
in proper order, if called successively with no modification in between? 
That is, is the following safe?

k,v = d.keys(), d.values()

Thanks!


----------------------------------
Nathan Clegg
 nathan at islanddata.com






More information about the Python-list mailing list