On 19Apr2010 21:31, alex23 <[email protected]> wrote: | Cameron Simpson <[email protected]> wrote: | > If items(), keys(), values(), iteritems(), iterkeys(), and | > itervalues() are called with no intervening modifications to the | > dictionary, the lists will directly correspond. This allows the | > creation of (value, key) pairs using zip(): pairs = zip(d.values(), | > d.keys()). | | I stand corrected. Thanks Cameron.
Oh, I was all ready to say what you said, but decided to check the docs myself first:-) Cheers, -- Cameron Simpson <[email protected]> DoD#743 http://www.cskk.ezoshosting.com/cs/ I really don't like :-) symbols as well. I feel that if you can't see the pie coming, you deserve whipped cream up your nose. - [email protected] (rob derrick) -- http://mail.python.org/mailman/listinfo/python-list
