diff options
author | Thomas Wouters <thomas@python.org> | 2001-07-09 12:30:54 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2001-07-09 12:30:54 (GMT) |
commit | efafcea2805436c12fd6544d9bff355cfac061d8 (patch) | |
tree | af9cd5cafe8fdba354d419ec8aa08737dc346794 /Python | |
parent | 4ccf1190535319d37cbc712422fd097cd8f0464f (diff) | |
download | cpython-efafcea2805436c12fd6544d9bff355cfac061d8.zip cpython-efafcea2805436c12fd6544d9bff355cfac061d8.tar.gz cpython-efafcea2805436c12fd6544d9bff355cfac061d8.tar.bz2 |
Re-add 'advanced' xrange features, adding DeprecationWarnings as discussed
on python-dev. The features will still vanish, however, just one release
later.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index d23bbf3..11d6f4c 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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[] = |