[New-bugs-announce] [issue5477] Typo in itertools documentation
report at bugs.python.org
Wed Mar 11 17:10:08 CET 2009
New submission from Thomas Guest <tag at wordaligned.org>:
> 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)
nosy: georg.brandl, thomasguest
title: Typo in itertools documentation
versions: Python 3.0
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce