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