Staging
v0.5.1
https://github.com/python/cpython
Revision d2b4c19d53f5f021fb1c7c32d48033a92ac4fe49 authored by Guido van Rossum on 01 February 2019, 23:28:13 UTC, committed by GitHub on 01 February 2019, 23:28:13 UTC
* Fix leak for # type: ignore
* Fix the type comment leak
1 parent ac19081
Raw File
Tip revision: d2b4c19d53f5f021fb1c7c32d48033a92ac4fe49 authored by Guido van Rossum on 01 February 2019, 23:28:13 UTC
bpo-35879: Fix type comment leaks (GH-11728)
Tip revision: d2b4c19
iterobject.h
#ifndef Py_ITEROBJECT_H
#define Py_ITEROBJECT_H
/* Iterators (the basic kind, over a sequence) */
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_DATA(PyTypeObject) PySeqIter_Type;
PyAPI_DATA(PyTypeObject) PyCallIter_Type;
PyAPI_DATA(PyTypeObject) PyCmpWrapper_Type;

#define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type)

PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);


#define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type)

PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);

#ifdef __cplusplus
}
#endif
#endif /* !Py_ITEROBJECT_H */

back to top