From 778038e965a1ff5bcc5585431cb193bd89eb9005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 21 Jul 2007 06:55:02 +0000 Subject: PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. --- Include/descrobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/descrobject.h') diff --git a/Include/descrobject.h b/Include/descrobject.h index a74af6009b..a45a80132c 100644 --- a/Include/descrobject.h +++ b/Include/descrobject.h @@ -77,7 +77,7 @@ PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *, struct PyGetSetDef *); PyAPI_FUNC(PyObject *) PyDescr_NewWrapper(PyTypeObject *, struct wrapperbase *, void *); -#define PyDescr_IsData(d) ((d)->ob_type->tp_descr_set != NULL) +#define PyDescr_IsData(d) (Py_Type(d)->tp_descr_set != NULL) PyAPI_FUNC(PyObject *) PyDictProxy_New(PyObject *); PyAPI_FUNC(PyObject *) PyWrapper_New(PyObject *, PyObject *); -- cgit v1.2.1