Serhiy Storchaka added the comment: Actually it should be iteritems(). This is meant to support Mailbox, which has both iteritems() and items() methods. iteritems() returns an iterator and items() returns a list. Looks as changeset f340cb045bf9 was incorrectly applied to mailbox. Here is a patch which partially reverts changeset f340cb045bf9 for the mailbox module and fixes tests in 3.x.
Perhaps we should change items() to return an iterator in Python 4.0. ---------- components: +Library (Lib) keywords: +patch nosy: +barry, petri.lehtinen, r.david.murray, serhiy.storchaka stage: -> patch review type: -> behavior versions: +Python 3.3, Python 3.4 Added file: http://bugs.python.org/file34189/mailbox_iters.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20729> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com