Guido van Rossum | 12d12c5 | 1993-10-26 17:58:25 +0000 | [diff] [blame] | 1 | |
| 2 | /* Range object interface */ |
| 3 | |
| 4 | /* |
Guido van Rossum | 9381782 | 1995-01-17 16:01:01 +0000 | [diff] [blame] | 5 | A range object represents an integer range. This is an immutable object; |
Guido van Rossum | 12d12c5 | 1993-10-26 17:58:25 +0000 | [diff] [blame] | 6 | a range cannot change its value after creation. |
| 7 | |
| 8 | Range objects behave like the corresponding tuple objects except that |
| 9 | they are represented by a start, stop, and step datamembers. |
| 10 | */ |
| 11 | |
Guido van Rossum | 051ab12 | 1995-02-27 10:17:52 +0000 | [diff] [blame] | 12 | extern DL_IMPORT(PyTypeObject) PyRange_Type; |
Guido van Rossum | 12d12c5 | 1993-10-26 17:58:25 +0000 | [diff] [blame] | 13 | |
Guido van Rossum | 9381782 | 1995-01-17 16:01:01 +0000 | [diff] [blame] | 14 | #define PyRange_Check(op) ((op)->ob_type == &PyRange_Type) |
Guido van Rossum | 12d12c5 | 1993-10-26 17:58:25 +0000 | [diff] [blame] | 15 | |
Fred Drake | 3cf4d2b | 2000-07-09 00:55:06 +0000 | [diff] [blame] | 16 | extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int); |