This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: incorrect description of range function
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, georg.brandl, jgleeson
Priority: normal Keywords:

Created on 2005-08-02 15:01 by jgleeson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25955 - (view) Author: John Gleeson (jgleeson) Date: 2005-08-02 15:01
The description of the behavior of the range function

http://www.python.org/doc/current/lib/built-in-funcs.html#l2h-56

for negative values of step appears to be incorrect:

"if step is negative, the last element is the largest start + i * step 
greater than stop."

This implies that the last element is 'start'.  I think it should say 
'smallest' instead of 'largest'. 
msg25956 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-08-03 07:18
Logged In: YES 
user_id=1188172

Correct. Committed as Doc/lib/libfuncs.tex r1.186, r1.175.2.6.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42244
2005-08-02 15:01:54jgleesoncreate