]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] Fix docstring and var name of itertools recipe (GH-112113) (#112311)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Nov 2023 05:41:51 +0000 (06:41 +0100)
committerGitHub <noreply@github.com>
Wed, 22 Nov 2023 05:41:51 +0000 (05:41 +0000)
commit640454fd32c314fd92239c571ae620dabc5aacef
tree9adda0d13696145413bb599c0d739e443b072d12
parent253ad788c65f33b9bf91aaa956801335e725ae84
[3.11] Fix docstring and var name of itertools recipe (GH-112113) (#112311)

Fix docstring and var name of itertools recipe (GH-112113)

`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 6c47eaccfa2550c140a24bc6e520d968731d9689)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Doc/library/itertools.rst