[Python-checkins] r70317 - python/branches/py3k/Doc/library/itertools.rst

raymond.hettinger python-checkins at python.org
Thu Mar 12 01:29:45 CET 2009


Author: raymond.hettinger
Date: Thu Mar 12 01:29:44 2009
New Revision: 70317

Log:
Issue 5477: Fix buglet in the itertools documentation.

Modified:
   python/branches/py3k/Doc/library/itertools.rst

Modified: python/branches/py3k/Doc/library/itertools.rst
==============================================================================
--- python/branches/py3k/Doc/library/itertools.rst	(original)
+++ python/branches/py3k/Doc/library/itertools.rst	Thu Mar 12 01:29:44 2009
@@ -26,9 +26,10 @@
 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:**


More information about the Python-checkins mailing list