diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-07 21:56:27 (GMT) |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-07 21:56:27 (GMT) |
commit | 042fa653ab91c05dfb50e227361ba345e45169c7 (patch) | |
tree | 542da728dee2e9536ff28a261aefb5005437d900 /Objects/rangeobject.c | |
parent | 3e5dae0ee290a2f16e14e8f9af01dd0214063f21 (diff) | |
parent | 83fe2e1c22e6ff72a308e82e1e24ca03f8c51339 (diff) | |
download | cpython-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.c | 5 |
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) |