Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

The two example classes are used exactly the same way, and don't show the 
differences between them. How about a simple change like:

Replace: 
"""If the class defines
:meth:`next`, then :meth:`__iter__` can just return ``self``"""
with
"""It may be convenient to define :meth:`next` in the class, and have 
:meth:`__iter__` just return ``self``;  In this case though, the object can be 
iterated only once."""

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8376>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to