mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
* rangeobject.[ch], bltinmodule.c: incorporate new version of range
object (unchanged from source except "range" -> "xrange").
This commit is contained in:
parent
c4f169cc5a
commit
7d6aa51b56
3 changed files with 129 additions and 25 deletions
|
@ -892,7 +892,7 @@ builtin_xrange(self, v)
|
|||
if (len < 0)
|
||||
len = 0;
|
||||
|
||||
return newrangeobject(start, len, step);
|
||||
return newrangeobject(start, len, step, 1);
|
||||
}
|
||||
|
||||
static object *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue