New submission from Thomas Guest <t...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue5477>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to