[3.11] Fix docstring and var name of itertools recipe (GH-112113) by miss-islington · Pull Request #112311 · python/cpython · GitHub
Skip to content

[3.11] Fix docstring and var name of itertools recipe (GH-112113) - #112311

Merged
hugovk merged 1 commit into
python:3.11from
miss-islington:backport-6c47eac-3.11
Nov 22, 2023
Merged

hugovk merged 1 commit into
python:3.11from
miss-islington:backport-6c47eac-3.11

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 22, 2023

Copy link
Copy Markdown
Contributor

prepend() works with arbitrary iterables, not only iterators. In fact,
the example given uses a list, which is iterable, but not an iterator.
(cherry picked from commit 6c47eac)

Co-authored-by: Sebastian Rittau srittau@rittau.biz


📚 Documentation preview 📚: https://cpython-previews--112311.org.readthedocs.build/

`prepend()` works with arbitrary iterables, not only iterators. In fact,
the example given uses a `list`, which is iterable, but not an iterator.
(cherry picked from commit 6c47eac)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
@bedevere-app bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Nov 22, 2023
@hugovk
hugovk enabled auto-merge (squash) November 22, 2023 05:37
@hugovk
hugovk merged commit 640454f into python:3.11 Nov 22, 2023
@miss-islington
miss-islington deleted the backport-6c47eac-3.11 branch January 2, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants