Staging
v0.5.1
https://github.com/python/cpython
Revision c08018ab3e063fede1f2d7395f2c3217d3a18fc0 authored by Andrew M. Kuchling on 27 October 2006, 13:34:05 UTC, committed by Andrew M. Kuchling on 27 October 2006, 13:34:05 UTC
1 parent a9e85bd
Raw File
Tip revision: c08018ab3e063fede1f2d7395f2c3217d3a18fc0 authored by Andrew M. Kuchling on 27 October 2006, 13:34:05 UTC
Add sections for a hypothetical future 2.4.5 release
Tip revision: c08018a
rangeobject.h

/* Range object interface */

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

/* This is about the type 'xrange', not the built-in function range(), which
   returns regular lists. */

/*
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;

#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)

PyAPI_FUNC(PyObject *) PyRange_New(long, long, long, int);

#ifdef __cplusplus
}
#endif
#endif /* !Py_RANGEOBJECT_H */
back to top