mirror of
https://github.com/python/cpython
synced 2024-11-02 10:13:47 +00:00
5fcfdd87c9
* Adds FOR_ITER_LIST and FOR_ITER_RANGE specializations. * Adds _PyLong_AssignValue() internal function to avoid temporary boxing of ints.
22 lines
362 B
C
22 lines
362 B
C
#ifndef Py_INTERNAL_RANGE_H
|
|
#define Py_INTERNAL_RANGE_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
#endif
|
|
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
long index;
|
|
long start;
|
|
long step;
|
|
long len;
|
|
} _PyRangeIterObject;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_INTERNAL_RANGE_H */
|