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:
Thomas Wouters 2001-07-09 12:30:54 +00:00
parent 4ccf119053
commit efafcea280
3 changed files with 222 additions and 19 deletions

View file

@ -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[] =