summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-10-07 21:56:27 (GMT)
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-10-07 21:56:27 (GMT)
commit042fa653ab91c05dfb50e227361ba345e45169c7 (patch)
tree542da728dee2e9536ff28a261aefb5005437d900 /Objects/rangeobject.c
parent3e5dae0ee290a2f16e14e8f9af01dd0214063f21 (diff)
parent83fe2e1c22e6ff72a308e82e1e24ca03f8c51339 (diff)
downloadcpython-042fa653ab91c05dfb50e227361ba345e45169c7.zip
cpython-042fa653ab91c05dfb50e227361ba345e45169c7.tar.gz
cpython-042fa653ab91c05dfb50e227361ba345e45169c7.tar.bz2
Issue #14783: Merge changes from 3.2.
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r--Objects/rangeobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index c47a4ff..68d5636 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -136,7 +136,8 @@ range_new(PyTypeObject *type, PyObject *args, PyObject *kw)
}
PyDoc_STRVAR(range_doc,
-"range([start,] stop[, step]) -> range object\n\
+"range(stop) -> range object\n\
+range(start, stop[, step]) -> range object\n\
\n\
Returns a virtual sequence of numbers from start to stop by step.");
@@ -969,7 +970,7 @@ rangeiter_reduce(rangeiterobject *r)
{
PyObject *start=NULL, *stop=NULL, *step=NULL;
PyObject *range;
-
+
/* create a range object for pickling */
start = PyLong_FromLong(r->start);
if (start == NULL)