Staging
v0.5.1
https://github.com/python/cpython
Revision 3050987d85d7cf8cdd4b3c053e673d13cd8dfb12 authored by Victor Stinner on 05 July 2017, 07:16:47 UTC, committed by GitHub on 05 July 2017, 07:16:47 UTC
* Rename again Lib/test/bisectcmd.py to Lib/test/bisect.py
* regrtest now removes '' and Lib/test/ from sys.path
* Use absolute import in test_bisect
1 parent d0ae4be
Raw File
Tip revision: 3050987d85d7cf8cdd4b3c053e673d13cd8dfb12 authored by Victor Stinner on 05 July 2017, 07:16:47 UTC
bpo-30843: regrtest fixes sys.path, restore test.bisect (#2567)
Tip revision: 3050987
cellobject.h
/* Cell object interface */

#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_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 */
back to top