commit | be36e0634060c7d5dee8e8876fb888bbb53d992a | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Fri Nov 19 16:40:34 2021 -0800 |
committer | GitHub <noreply@github.com> | Fri Nov 19 16:40:34 2021 -0800 |
tree | dcf28e3105e12b272cdca00de2b260dec6805183 | |
parent | 4c616911b69ce07fb35da1721506bfaba0998c30 [diff] |
bpo-45250: fix docs regarding `__iter__` and iterators being inconsistently required by CPython (GH-29170) It is now considered a historical accident that e.g. `for` loops and the `iter()` built-in function do not require the iterators they work with to define `__iter__`, only `__next__`.