[docs] [issue22785] range docstring is less useful than in python 2
Ned Batchelder
report at bugs.python.org
Wed Apr 22 02:00:28 CEST 2015
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 start (inclusive)
| to stop (exclusive) by step. range(i, j) produces i, i+1, i+2, ..., j-1.
| start defaults to 0, and stop is omitted! range(4) produces 0, 1, 2, 3.
| These are exactly the valid indices for a list of 4 elements.
| When step is given, it specifies the increment (or decrement).
----------
keywords: +patch
Added file: http://bugs.python.org/file39163/22785.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22785>
_______________________________________
More information about the docs
mailing list