keys and values lining up
Aahz Maruch
aahz at netcom.com
Mon Sep 27 20:57:17 EDT 1999
In article <XFMail.990927160353.nathan at islanddata.com>,
Nathan Clegg <nathan at islanddata.com> wrote:
>
>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()
How about d.items()?
--
--- Aahz (@netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6 (if you want to know, do some research)
More information about the Python-list
mailing list