2 /* Range object interface */
4 #ifndef Py_RANGEOBJECT_H
5 #define Py_RANGEOBJECT_H
10 /* This is about the type 'xrange', not the built-in function range(), which
11 returns regular lists. */
14 A range object represents an integer range. This is an immutable object;
15 a range cannot change its value after creation.
17 Range objects behave like the corresponding tuple objects except that
18 they are represented by a start, stop, and step datamembers.
21 PyAPI_DATA(PyTypeObject
) PyRange_Type
;
23 #define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
28 #endif /* !Py_RANGEOBJECT_H */