Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfd829e

Browse files
committed
Complete the xrange-simplification checkins: call PyRange_New() with
fewer arguments.
1 parent 3f56166 commit cfd829e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ builtin_xrange(PyObject *self, PyObject *args)
17631763
"xrange() result has too many items");
17641764
return NULL;
17651765
}
1766-
return PyRange_New(ilow, n, istep, 1);
1766+
return PyRange_New(ilow, n, istep);
17671767
}
17681768

17691769
static char xrange_doc[] =

0 commit comments

Comments
 (0)