Staging
v0.5.1
https://github.com/python/cpython
Revision dea5101ae101aefed14de98e6bb1658f4cae8712 authored by Yury Selivanov on 03 March 2017, 03:20:00 UTC, committed by Yury Selivanov on 03 March 2017, 03:28:07 UTC
1 parent 01e5230
Raw File
Tip revision: dea5101ae101aefed14de98e6bb1658f4cae8712 authored by Yury Selivanov on 03 March 2017, 03:20:00 UTC
bpo-28893: Set __cause__ for errors in async iteration protocol (#407)
Tip revision: dea5101
rangeobject.h

/* 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 */
back to top