[Python-checkins] r70319 - python/trunk/Doc/library/itertools.rst
raymond.hettinger
python-checkins at python.org
Thu Mar 12 01:31:58 CET 2009
Author: raymond.hettinger
Date: Thu Mar 12 01:31:58 2009
New Revision: 70319
Log:
Issue 5477: Fix buglet in the itertools documentation.
Modified:
python/trunk/Doc/library/itertools.rst
Modified: python/trunk/Doc/library/itertools.rst
==============================================================================
--- python/trunk/Doc/library/itertools.rst (original)
+++ python/trunk/Doc/library/itertools.rst Thu Mar 12 01:31:58 2009
@@ -28,9 +28,10 @@
: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:**
More information about the Python-checkins
mailing list