This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients docs@python, eric.araujo
Date 2014-11-22.20:49:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1416689379.36.0.290921977035.issue22918@psf.upfronthosting.co.za>
In-reply-to
Content
https://docs.python.org/3/reference/datamodel#object.__iter__

> This method should return a new iterator object that can iterate over all the objects
> in the container. For mappings, it should iterate over the keys of the container, and
> should also be made available as the method keys().

In 3.x, d.__iter__() is not equivalent to d.keys() but to iter(d.keys()).
History
Date User Action Args
2014-11-22 20:49:39eric.araujosetrecipients: + eric.araujo, docs@python
2014-11-22 20:49:39eric.araujosetmessageid: <1416689379.36.0.290921977035.issue22918@psf.upfronthosting.co.za>
2014-11-22 20:49:39eric.araujolinkissue22918 messages
2014-11-22 20:49:39eric.araujocreate