view Include/rangeobject.h @ 50518:072dedee77fa 3.0

Merged revisions 68216 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r68216 | antoine.pitrou | 2009-01-03 21:28:05 +0100 (sam., 03 janv. 2009) | 3 lines Fix BytesWarning with -bb in wsgiref.headers.Headers. ........
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 03 Jan 2009 21:38:35 +0000
parents 86a2679dca46
children
line wrap: on
line source


/* Range object interface */

#ifndef Py_RANGEOBJECT_H
#define Py_RANGEOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

/*
A range object represents an integer range.  This is an immutable object;
a range cannot change its value after creation.

Range objects behave like the corresponding tuple objects except that
they are represented by a start, stop, and step datamembers.
*/

PyAPI_DATA(PyTypeObject) PyRange_Type;
PyAPI_DATA(PyTypeObject) PyRangeIter_Type;
PyAPI_DATA(PyTypeObject) PyLongRangeIter_Type;

#define PyRange_Check(op) (Py_TYPE(op) == &PyRange_Type)

#ifdef __cplusplus
}
#endif
#endif /* !Py_RANGEOBJECT_H */