summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2001-07-09 12:30:54 (GMT)
committerThomas Wouters <thomas@python.org>2001-07-09 12:30:54 (GMT)
commitefafcea2805436c12fd6544d9bff355cfac061d8 (patch)
treeaf9cd5cafe8fdba354d419ec8aa08737dc346794 /Python
parent4ccf1190535319d37cbc712422fd097cd8f0464f (diff)
downloadcpython-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.c2
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[] =