diff options
author | Raymond Hettinger <python@rcn.com> | 2009-03-12 00:29:44 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-03-12 00:29:44 (GMT) |
commit | 2c109ab5140e948e2233606cbb6c8e3573a20903 (patch) | |
tree | b52c65059e6e63b18c28b668c18840d5befe987a /Doc | |
parent | 6c4b4b2267215b8fe69f0e025c3d19f6cdc4fb91 (diff) | |
download | cpython-2c109ab5140e948e2233606cbb6c8e3573a20903.zip cpython-2c109ab5140e948e2233606cbb6c8e3573a20903.tar.gz cpython-2c109ab5140e948e2233606cbb6c8e3573a20903.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 2c79b06..aa133bb 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -26,9 +26,10 @@ For instance, SML provides a tabulation tool: ``tabulate(f)`` which produces a sequence ``f(0), f(1), ...``. But, this effect can be achieved in Python by combining :func:`map` and :func:`count` to form ``map(f, count())``. -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(map(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(map(operator.mul, vector1, vector2))``. **Infinite Iterators:** |