mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Update an out-of-date example in the itertools recipe intro (gh-116082)
This commit is contained in:
parent
e80abd57a8
commit
f484a2a748
1 changed files with 1 additions and 1 deletions
|
@ -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()``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue