jpayne@69: jpayne@69: /* Range object interface */ jpayne@69: jpayne@69: #ifndef Py_RANGEOBJECT_H jpayne@69: #define Py_RANGEOBJECT_H jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: /* jpayne@69: A range object represents an integer range. This is an immutable object; jpayne@69: a range cannot change its value after creation. jpayne@69: jpayne@69: Range objects behave like the corresponding tuple objects except that jpayne@69: they are represented by a start, stop, and step datamembers. jpayne@69: */ jpayne@69: jpayne@69: PyAPI_DATA(PyTypeObject) PyRange_Type; jpayne@69: PyAPI_DATA(PyTypeObject) PyRangeIter_Type; jpayne@69: PyAPI_DATA(PyTypeObject) PyLongRangeIter_Type; jpayne@69: jpayne@69: #define PyRange_Check(op) (Py_TYPE(op) == &PyRange_Type) jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: #endif /* !Py_RANGEOBJECT_H */