Cameron Simpson <c...@zip.com.au> 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.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to