summaryrefslogtreecommitdiff
path: root/Include/cellobject.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-07-21 06:55:02 +0000
committerMartin v. Löwis <martin@v.loewis.de>2007-07-21 06:55:02 +0000
commit778038e965a1ff5bcc5585431cb193bd89eb9005 (patch)
treea25dda76813c1223f6a2d246f3fa63c9ff66dd4b /Include/cellobject.h
parent5a122db52c24ed01ad2fba7efeed10048cbcc9fe (diff)
downloadcpython-778038e965a1ff5bcc5585431cb193bd89eb9005.tar.gz
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
Diffstat (limited to 'Include/cellobject.h')
-rw-r--r--Include/cellobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cellobject.h b/Include/cellobject.h
index fd186e28c2..1036420313 100644
--- a/Include/cellobject.h
+++ b/Include/cellobject.h
@@ -13,7 +13,7 @@ typedef struct {
PyAPI_DATA(PyTypeObject) PyCell_Type;
-#define PyCell_Check(op) ((op)->ob_type == &PyCell_Type)
+#define PyCell_Check(op) (Py_Type(op) == &PyCell_Type)
PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);
PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);