Staging
v0.5.1
https://github.com/python/cpython
Revision 64409117361499058b1bf95e6efec31f7bb3c0d0 authored by Miss Islington (bot) on 08 June 2020, 01:08:53 UTC, committed by GitHub on 08 June 2020, 01:08:53 UTC
(cherry picked from commit 972ab0327675e695373fc6272d5ac24e187579ad)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent 71f5016
Raw File
Tip revision: 64409117361499058b1bf95e6efec31f7bb3c0d0 authored by Miss Islington (bot) on 08 June 2020, 01:08:53 UTC
bpo-40904: Fix segfault in the new parser with f-string containing yield statements with no value (GH-20701)
Tip revision: 6440911
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_IS_TYPE(op, &PyRange_Type)

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