blob: 145f774af85e295698f1f935d01e9f3b7c16c66c [file] [log] [blame]
Guido van Rossum12d12c51993-10-26 17:58:25 +00001
2/* Range object interface */
3
4/*
Guido van Rossum93817821995-01-17 16:01:01 +00005A range object represents an integer range. This is an immutable object;
Guido van Rossum12d12c51993-10-26 17:58:25 +00006a range cannot change its value after creation.
7
8Range objects behave like the corresponding tuple objects except that
9they are represented by a start, stop, and step datamembers.
10*/
11
Guido van Rossum051ab121995-02-27 10:17:52 +000012extern DL_IMPORT(PyTypeObject) PyRange_Type;
Guido van Rossum12d12c51993-10-26 17:58:25 +000013
Guido van Rossum93817821995-01-17 16:01:01 +000014#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
Guido van Rossum12d12c51993-10-26 17:58:25 +000015
Fred Drake3cf4d2b2000-07-09 00:55:06 +000016extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);