blob: 77398697f49ba32bb59beb1d187b60aacc9a480c [file] [log] [blame]
Guido van Rossum12d12c51993-10-26 17:58:25 +00001/***********************************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00002Copyright (c) 2000, BeOpen.com.
3Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
5All rights reserved.
Guido van Rossum12d12c51993-10-26 17:58:25 +00006
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00007See the file "Misc/COPYRIGHT" for information on usage and
8redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossum12d12c51993-10-26 17:58:25 +00009******************************************************************/
10
11/* Range object interface */
12
13/*
Guido van Rossum93817821995-01-17 16:01:01 +000014A range object represents an integer range. This is an immutable object;
Guido van Rossum12d12c51993-10-26 17:58:25 +000015a range cannot change its value after creation.
16
17Range objects behave like the corresponding tuple objects except that
18they are represented by a start, stop, and step datamembers.
19*/
20
Guido van Rossum051ab121995-02-27 10:17:52 +000021extern DL_IMPORT(PyTypeObject) PyRange_Type;
Guido van Rossum12d12c51993-10-26 17:58:25 +000022
Guido van Rossum93817821995-01-17 16:01:01 +000023#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
Guido van Rossum12d12c51993-10-26 17:58:25 +000024
Guido van Rossum43466ec1998-12-04 18:48:25 +000025extern DL_IMPORT(PyObject *) PyRange_New Py_PROTO((long, long, long, int));