Staging
v0.5.1
https://github.com/python/cpython
Revision 8fe830d374da0855e0712160620dd61aa6519d14 authored by Mariatta on 06 February 2019, 22:02:45 UTC, committed by Miss Islington (bot) on 06 February 2019, 22:02:45 UTC


(cherry picked from commit e9bc4172d18db9c182d8e04dd7b033097a994c06)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
1 parent 40a101d
Raw File
Tip revision: 8fe830d374da0855e0712160620dd61aa6519d14 authored by Mariatta on 06 February 2019, 22:02:45 UTC
[2.7] Fix url to core-mentorship mailing list (GH-11775). (GH-11778)
Tip revision: 8fe830d
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) (Py_TYPE(op) == &PyRange_Type)

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