Staging
v0.5.1
https://github.com/python/cpython
Revision 3e24dd52bba863fce4f3c6a34ca9f813666ed181 authored by Miss Islington (bot) on 29 June 2019, 23:16:44 UTC, committed by Ned Deily on 02 July 2019, 02:27:07 UTC
(cherry picked from commit 95da310078a9364bae9ab3f2ad9c71e34306a70c)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent a88652e
Raw File
Tip revision: 3e24dd52bba863fce4f3c6a34ca9f813666ed181 authored by Miss Islington (bot) on 29 June 2019, 23:16:44 UTC
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
Tip revision: 3e24dd5
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