[pydotorg-www] Editing ForLoop Page

Chris Angelico rosuav at gmail.com
Fri Jul 15 17:44:01 EDT 2016


On Sat, Jul 16, 2016 at 3:54 AM, Guy Arad <guyarad at gmail.com> wrote:
> I have recently started developing Python professionally.
> I have stumbled upon the ForLoop page the part showing how to write your own
> iterable is misleading. It should at the very least state the __iter__ is
> part of the iterable protocol, and 'next' is part of the iterator protocol,
> and actually it's preferable to separate the iterator from the iterable.
>
> I would be happy to contribute.

Looks like that code is all about Python 2, too, which should be
changed (it should at least acknowledge Py3). Contributions are
definitely welcome; all you need is a Wiki user name, and we can give
you editing power.

ChrisA


More information about the pydotorg-www mailing list