Staging
v0.8.1
https://github.com/python/cpython
Revision df6c8bcffef3380869c8f76317610ce452880b25 authored by Miss Islington (bot) on 28 November 2020, 15:07:51 UTC, committed by GitHub on 28 November 2020, 15:07:51 UTC
Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
(cherry picked from commit 8085f742f4adfbc85f13fc734dfab036aa23acfb)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent 761c5a1
Raw File
Tip revision: df6c8bcffef3380869c8f76317610ce452880b25 authored by Miss Islington (bot) on 28 November 2020, 15:07:51 UTC
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925) (GH-23539)
Tip revision: df6c8bc
cellobject.h
/* Cell object interface */
#ifndef Py_LIMITED_API
#ifndef Py_CELLOBJECT_H
#define Py_CELLOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    PyObject_HEAD
    PyObject *ob_ref;       /* Content of the cell or NULL when empty */
} PyCellObject;

PyAPI_DATA(PyTypeObject) PyCell_Type;

#define PyCell_Check(op) Py_IS_TYPE(op, &PyCell_Type)

PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);
PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);
PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);

#define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
#define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v)

#ifdef __cplusplus
}
#endif
#endif /* !Py_TUPLEOBJECT_H */
#endif /* Py_LIMITED_API */
back to top