Staging
v0.5.1
https://github.com/python/cpython
Revision 923fae44e01c3e7ac50cf815d647aa7f4b9ec9ec authored by Gregory P. Smith on 19 December 2004, 23:27:48 UTC, committed by Gregory P. Smith on 19 December 2004, 23:27:48 UTC
the end of a second function whos code was identical enough for patch
not to reject the patch.  this reverses that misapplication (only the
DBC_set_range method needed modification, not DBC_set as well).  This
problem only exists in the release32-maint branch.
1 parent 139af55
Raw File
Tip revision: 923fae44e01c3e7ac50cf815d647aa7f4b9ec9ec authored by Gregory P. Smith on 19 December 2004, 23:27:48 UTC
In 1.17.6.4 part of the patch committed in 1.17.6.3 got reapplied to
Tip revision: 923fae4
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;
} PyCellObject;

PyAPI_DATA(PyTypeObject) PyCell_Type;

#define PyCell_Check(op) ((op)->ob_type == &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