mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Re-add 'advanced' xrange features, adding DeprecationWarnings as discussed
on python-dev. The features will still vanish, however, just one release later.
This commit is contained in:
parent
4ccf119053
commit
efafcea280
3 changed files with 222 additions and 19 deletions
|
@ -1763,7 +1763,7 @@ builtin_xrange(PyObject *self, PyObject *args)
|
|||
"xrange() result has too many items");
|
||||
return NULL;
|
||||
}
|
||||
return PyRange_New(ilow, n, istep);
|
||||
return PyRange_New(ilow, n, istep, 1);
|
||||
}
|
||||
|
||||
static char xrange_doc[] =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue