[Python-3000] Default dict iterator should have been iteritems() (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 4 11:30:14 CEST 2007
- Previous message: [Python-3000] Default dict iterator should have been iteritems()
- Next message: [Python-3000] Default dict iterator should have been iteritems()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Default dict iterator should have been iteritems()
- Next message: [Python-3000] Default dict iterator should have been iteritems()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]