[3.12] Update an out-of-date example in the itertools recipe intro (gh-116082) (gh-116084)

This commit is contained in:
Miss Islington (bot) 2024-02-29 00:19:17 +01:00 committed by GitHub
parent 83ff92d225
commit d4a1c8e628
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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()``.