summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-10-08 03:37:54 (GMT)
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-10-08 03:37:54 (GMT)
commitad4b0001794e47368b0997183b30b1171eab2790 (patch)
treea390e85fcddef84bd3182a420836fa52447c4649 /Objects/rangeobject.c
parente4831f6b1296869afd7ac88e674196a599542d50 (diff)
downloadcpython-ad4b0001794e47368b0997183b30b1171eab2790.zip
cpython-ad4b0001794e47368b0997183b30b1171eab2790.tar.gz
cpython-ad4b0001794e47368b0997183b30b1171eab2790.tar.bz2
Issue #14783: Backport changes from 3.2.
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r--Objects/rangeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index c602e7d..5203f40 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -104,7 +104,8 @@ range_new(PyTypeObject *type, PyObject *args, PyObject *kw)
}
PyDoc_STRVAR(range_doc,
-"xrange([start,] stop[, step]) -> xrange object\n\
+"xrange(stop) -> xrange object\n\
+xrange(start, stop[, step]) -> xrange object\n\
\n\
Like range(), but instead of returning a list, returns an object that\n\
generates the numbers in the range on demand. For looping, this is \n\