Rip out the fancy behaviors of xrange that nobody uses: repeat, slice,

contains, tolist(), and the start/stop/step attributes.  This includes
removing the 4th ('repeat') argument to PyRange_New().
This commit is contained in:
Guido van Rossum 2001-07-05 13:27:48 +00:00
parent 25ddc6330f
commit 3f56166b1a
3 changed files with 18 additions and 229 deletions

View file

@ -19,7 +19,7 @@ extern DL_IMPORT(PyTypeObject) PyRange_Type;
#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);
extern DL_IMPORT(PyObject *) PyRange_New(long, long, long);
#ifdef __cplusplus
}