In article <e3e8255f-0158-481b-8c96-fb20261f7...@v36g2000yqv.googlegroups.com>,
dmitrey  <dmitrey.kros...@scipy.org> wrote:
>hi all,
>which method should I use to get iterator over (key, value) pairs for
>Python dict, Python v 2.6 and above?

   dict.iteritems()

>>> import sys
>>> for (key, value) in sys.modules.iteritems(): print key, value

                                        Gary Duzan
                                        Motorola H&NM


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to