[Python-3000] Default dict iterator should have been iteritems()

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 4 11:30:14 CEST 2007


Noam Raphael wrote:
> The default dict iterator should in principle be iteritems(), and not
> iterkeys().

This was discussed at length back when "in" support was
added to dicts. There were reasons for choosing to do it
the way it's done, and I don't think it's likely to be
changed.

--
Greg


More information about the Python-3000 mailing list