Message398263
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. |
|
Date |
User |
Action |
Args |
2021-07-26 22:15:56 | andrei.avk | set | recipients:
+ andrei.avk, docs@python, kj |
2021-07-26 22:15:56 | andrei.avk | set | messageid: <1627337756.3.0.0222150564989.issue42182@roundup.psfhosted.org> |
2021-07-26 22:15:56 | andrei.avk | link | issue42182 messages |
2021-07-26 22:15:56 | andrei.avk | create | |
|