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 andrei.avk
Recipients andrei.avk, docs@python, kj
Date 2021-07-26.22:15:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627337756.3.0.0222150564989.issue42182@roundup.psfhosted.org>
In-reply-to
Content
In this case, it appears that ref with tilde and object makes it work in both 3.10 and 3.11, but with just bare method specified, it doesn't create link in both -- so it may be good to try updating it to have tilde  and a ref to obj:


Once an iterator's :meth:`~iterator.__next__` method raises
:exc:`StopIteration`, it must continue to do so on subsequent calls.
Implementations that do not obey this property are deemed broken.


.. _generator-types:

Generator Types
---------------

Python's :term:`generator`\s provide a convenient way to implement the iterator
protocol.  If a container object's :meth:`__iter__` method is implemented as a
generator, it will automatically return an iterator object (technically, a
generator object) supplying the :meth:`__iter__` and :meth:`~generator.__next__`
methods.
History
Date User Action Args
2021-07-26 22:15:56andrei.avksetrecipients: + andrei.avk, docs@python, kj
2021-07-26 22:15:56andrei.avksetmessageid: <1627337756.3.0.0222150564989.issue42182@roundup.psfhosted.org>
2021-07-26 22:15:56andrei.avklinkissue42182 messages
2021-07-26 22:15:56andrei.avkcreate