Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / src / nas,5.n2.os.2 / lib / python / include / python2.4 / rangeobject.h
CommitLineData
86530b38
AT
1#ifndef Py_RANGEOBJECT_H
2#define Py_RANGEOBJECT_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7/* This is about the type 'xrange', not the built-in function range(), which
8 returns regular lists. */
9
10/*
11A range object represents an integer range. This is an immutable object;
12a range cannot change its value after creation.
13
14Range objects behave like the corresponding tuple objects except that
15they are represented by a start, stop, and step datamembers.
16*/
17
18PyAPI_DATA(PyTypeObject) PyRange_Type;
19
20#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
21
22PyAPI_FUNC(PyObject *) PyRange_New(long, long, long, int);
23
24#ifdef __cplusplus
25}
26#endif
27#endif /* !Py_RANGEOBJECT_H */