Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | #ifndef Py_RANGEOBJECT_H |
2 | #define Py_RANGEOBJECT_H | |
3 | #ifdef __cplusplus | |
4 | extern "C" { | |
5 | #endif | |
6 | ||
7 | /* This is about the type 'xrange', not the built-in function range(), which | |
8 | returns regular lists. */ | |
9 | ||
10 | /* | |
11 | A range object represents an integer range. This is an immutable object; | |
12 | a range cannot change its value after creation. | |
13 | ||
14 | Range objects behave like the corresponding tuple objects except that | |
15 | they are represented by a start, stop, and step datamembers. | |
16 | */ | |
17 | ||
18 | PyAPI_DATA(PyTypeObject) PyRange_Type; | |
19 | ||
20 | #define PyRange_Check(op) ((op)->ob_type == &PyRange_Type) | |
21 | ||
22 | PyAPI_FUNC(PyObject *) PyRange_New(long, long, long, int); | |
23 | ||
24 | #ifdef __cplusplus | |
25 | } | |
26 | #endif | |
27 | #endif /* !Py_RANGEOBJECT_H */ |