Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in itertools documentation #49727

Closed
thomasguest mannequin opened this issue Mar 11, 2009 · 2 comments
Closed

Typo in itertools documentation #49727

thomasguest mannequin opened this issue Mar 11, 2009 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@thomasguest
Copy link
Mannequin

thomasguest mannequin commented Mar 11, 2009

BPO 5477
Nosy @birkenfeld, @rhettinger

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/rhettinger'
closed_at = <Date 2009-03-12.00:30:11.790>
created_at = <Date 2009-03-11.16:10:07.228>
labels = ['docs']
title = 'Typo in itertools documentation'
updated_at = <Date 2009-03-12.00:30:11.788>
user = 'https://bugs.python.org/thomasguest'

bugs.python.org fields:

activity = <Date 2009-03-12.00:30:11.788>
actor = 'rhettinger'
assignee = 'rhettinger'
closed = True
closed_date = <Date 2009-03-12.00:30:11.790>
closer = 'rhettinger'
components = ['Documentation']
creation = <Date 2009-03-11.16:10:07.228>
creator = 'thomasguest'
dependencies = []
files = []
hgrepos = []
issue_num = 5477
keywords = []
message_count = 2.0
messages = ['83472', '83483']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'rhettinger', 'thomasguest']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue5477'
versions = ['Python 3.0']

@thomasguest
Copy link
Mannequin Author

thomasguest mannequin commented Mar 11, 2009

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)

@thomasguest thomasguest mannequin assigned birkenfeld Mar 11, 2009
@thomasguest thomasguest mannequin added the docs Documentation in the Doc dir label Mar 11, 2009
@rhettinger rhettinger assigned rhettinger and unassigned birkenfeld Mar 11, 2009
@rhettinger
Copy link
Contributor

Fixed. See r70317.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants