]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update an out-of-date example in the itertools recipe intro (gh-116082)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Wed, 28 Feb 2024 23:11:05 +0000 (17:11 -0600)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 23:11:05 +0000 (17:11 -0600)
Doc/library/itertools.rst

index 4e731fefe8908d32eb4805052b3aede5764d74ca..c26f6c89b4920a1f398086107e4b94edf035cbb5 100644 (file)
@@ -778,7 +778,7 @@ The primary purpose of the itertools recipes is educational.  The recipes show
 various ways of thinking about individual tools — for example, that
 ``chain.from_iterable`` is related to the concept of flattening.  The recipes
 also give ideas about ways that the tools can be combined — for example, how
-``compress()`` and ``range()`` can work together.  The recipes also show patterns
+``starmap()`` and ``repeat()`` can work together.  The recipes also show patterns
 for using itertools with the :mod:`operator` and :mod:`collections` modules as
 well as with the built-in itertools such as ``map()``, ``filter()``,
 ``reversed()``, and ``enumerate()``.