Chris@87: Chris@87: /* Range object interface */ Chris@87: Chris@87: #ifndef Py_RANGEOBJECT_H Chris@87: #define Py_RANGEOBJECT_H Chris@87: #ifdef __cplusplus Chris@87: extern "C" { Chris@87: #endif Chris@87: Chris@87: /* This is about the type 'xrange', not the built-in function range(), which Chris@87: returns regular lists. */ Chris@87: Chris@87: /* Chris@87: A range object represents an integer range. This is an immutable object; Chris@87: a range cannot change its value after creation. Chris@87: Chris@87: Range objects behave like the corresponding tuple objects except that Chris@87: they are represented by a start, stop, and step datamembers. Chris@87: */ Chris@87: Chris@87: PyAPI_DATA(PyTypeObject) PyRange_Type; Chris@87: Chris@87: #define PyRange_Check(op) (Py_TYPE(op) == &PyRange_Type) Chris@87: Chris@87: #ifdef __cplusplus Chris@87: } Chris@87: #endif Chris@87: #endif /* !Py_RANGEOBJECT_H */