Roundup Robot added the comment:
New changeset aa6b73823685 by Benjamin Peterson in branch '3.4':
improved range docstring (closes #22785)
https://hg.python.org/cpython/rev/aa6b73823685
New changeset c031fa8e6884 by Benjamin Peterson in branch 'default':
merge 3.4 (#22785)
Ned Batchelder added the comment:
(By the time I got to the source, the word virtual had been removed...)
Attached is a patch to make the help read:
| range(stop) - range object
| range(start, stop[, step]) - range object
|
| Return an object that produces a sequence of integers from
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +benjamin.peterson
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22785
___
Raymond Hettinger added the comment:
Note that Python 3 seems to imply that the end-point is included
The Python 2 wording is better in this regard.
Also, it would be nice clarify what is meant by virtual sequence. I know
what that means only because I already know what range() does. For
Changes by Devin Jeanpierre jeanpierr...@gmail.com:
--
nosy: +Devin Jeanpierre
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22785
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - needs patch
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22785
___
New submission from Ned Batchelder:
The Python 3.4 docstring for range is:
{{{
| range(stop) - range object
| range(start, stop[, step]) - range object
|
| Return a virtual sequence of numbers from start to stop by step.
}}}
In Python 2.7, it said:
{{{
range(stop) - list of integers