diff options
author | Raymond Hettinger <python@rcn.com> | 2009-03-12 00:35:05 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-03-12 00:35:05 (GMT) |
commit | 2b45819b7518b5c76c31bbed0e6763726590d100 (patch) | |
tree | 0bcc41d093945612fca928b9b16cd5a898ffeb0f /Doc | |
parent | 52cafc50a64a61849ac15cb437505b35da65d2e1 (diff) | |
download | cpython-2b45819b7518b5c76c31bbed0e6763726590d100.zip cpython-2b45819b7518b5c76c31bbed0e6763726590d100.tar.gz cpython-2b45819b7518b5c76c31bbed0e6763726590d100.tar.bz2 |
Issue 5477: Fix buglet in the itertools documentation.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/itertools.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 8a1d245..c0a1305 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -28,9 +28,10 @@ sequence ``f(0), f(1), ...``. This toolbox provides :func:`imap` and :func:`count` which can be combined to form ``imap(f, count())`` to produce an equivalent result. -The tools also work well with the high-speed functions in the :mod:`operator` -module. For example, the plus-operator can be mapped across two vectors to -form an efficient dot-product: ``sum(imap(operator.add, vector1, vector2))``. +These tools and their built-in counterparts also work well with the high-speed +functions in the :mod:`operator` module. For example, the multiplication +operator can be mapped across two vectors to form an efficient dot-product: +``sum(imap(operator.mul, vector1, vector2))``. **Infinite Iterators:** |