classification
Title: Example for itertools.count is misleading
Type: Stage:
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: alex, docs@python, jammon, rhettinger
Priority: normal Keywords: patch

Created on 2011-02-14 05:17 by jammon, last changed 2011-02-14 06:05 by rhettinger. This issue is now closed.

Files
File name Uploaded Description Edit
python-11209.diff alex, 2011-02-14 05:56
Messages (3)
msg128533 - (view) Author: Johannes Ammon (jammon) Date: 2011-02-14 05:17
The example code for itertools.count (http://docs.python.org/library/itertools.html#itertools.count) says 

    # count(2.5, 0.5) -> 3.5 3.0 4.5 ...

I think that should read

    # count(2.5, 0.5) -> 2.5 3.0 3.5 ...
msg128534 - (view) Author: Alex Gaynor (alex) * (Python committer) Date: 2011-02-14 05:56
Patch for 2.7.
msg128535 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2011-02-14 06:05
Fixed in 2.7 and 3.1.
Was already fixed in 3.2.
Thanks for the report.
History
Date User Action Args
2011-02-14 06:05:33rhettingersetstatus: open -> closed

nosy: + rhettinger
messages: + msg128535

resolution: fixed
2011-02-14 05:56:57alexsetfiles: + python-11209.diff

nosy: + alex
messages: + msg128534

keywords: + patch
2011-02-14 05:17:50jammoncreate