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
_______________________________________________ pydotorg-www mailing list pydotorg-www@python.org https://mail.python.org/mailman/listinfo/pydotorg-www