summaryrefslogtreecommitdiffstats
path: root/Include/tupleobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/tupleobject.h')
-rw-r--r--Include/tupleobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/tupleobject.h b/Include/tupleobject.h
index bf20854..3da3fe0 100644
--- a/Include/tupleobject.h
+++ b/Include/tupleobject.h
@@ -26,7 +26,7 @@ typedef struct {
extern DL_IMPORT(PyTypeObject) PyTuple_Type;
-#define PyTuple_Check(op) ((op)->ob_type == &PyTuple_Type)
+#define PyTuple_Check(op) PyObject_TypeCheck(op, &PyTuple_Type)
extern DL_IMPORT(PyObject *) PyTuple_New(int size);
extern DL_IMPORT(int) PyTuple_Size(PyObject *);