mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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:
parent
25ddc6330f
commit
3f56166b1a
3 changed files with 18 additions and 229 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue