This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Typo in itertools documentation
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: georg.brandl, rhettinger, thomasguest
Priority: normal Keywords:

Created on 2009-03-11 16:10 by thomasguest, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg83472 - (view) Author: Thomas Guest (thomasguest) Date: 2009-03-11 16:10
http://docs.python.org/3.0/library/itertools.html says:

> The tools also work well with the high-speed functions in the 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)).

I think there are two problems here.

1. I think this should read: "the multiplication operator ...
sum(map(operator.mul, vector1, vector2))."

2. This example has nothing to do with itertools! (At 3.n, map is a
built in function)
msg83483 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-03-12 00:30
Fixed.  See r70317.
History
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49727
2009-03-12 00:30:11rhettingersetstatus: open -> closed

messages: + msg83483
resolution: fixed
2009-03-11 18:03:42rhettingersetassignee: georg.brandl -> rhettinger

nosy: + rhettinger
2009-03-11 16:10:07thomasguestcreate