[3.12] Fix docstring and var name of itertools recipe (GH-112113) (#1… · python/cpython@bfc6d91 · GitHub
Skip to content

Commit bfc6d91

Browse files
[3.12] Fix docstring and var name of itertools recipe (GH-112113) (#112310)
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 6c47eac) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
1 parent 298e57a commit bfc6d91

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/itertools.rst

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)