[issue5477] Typo in itertools documentation

Thomas Guest report at bugs.python.org
Wed Mar 11 17:10:08 CET 2009


New submission from Thomas Guest <tag at wordaligned.org>:

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)

----------
assignee: georg.brandl
components: Documentation
messages: 83472
nosy: georg.brandl, thomasguest
severity: normal
status: open
title: Typo in itertools documentation
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5477>
_______________________________________


More information about the Python-bugs-list mailing list