]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Update an out-of-date example in the itertools recipe intro (gh-116082) (gh...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Feb 2024 23:19:17 +0000 (00:19 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 23:19:17 +0000 (17:19 -0600)
Doc/library/itertools.rst

index 82d24a752a4aaae7e34277624e9b5c2f77220dc0..f265e046afc85ab91f3def9db75ce7c36710c240 100644 (file)
@@ -770,7 +770,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()``.