mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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:
parent
4ccf119053
commit
efafcea280
3 changed files with 222 additions and 19 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);
|
||||
extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue