[pydotorg-www] Editing ForLoop Page

Guy Arad guyarad at gmail.com
Fri Jul 15 13:54:09 EDT 2016


Hi,
I have recently started developing Python professionally.
I have stumbled upon the ForLoop <https://wiki.python.org/moin/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.
Thanks,
Guy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pydotorg-www/attachments/20160715/aabe88d7/attachment.html>


More information about the pydotorg-www mailing list