diff Include/listobject.h @ 18933:09df3254b49d legacy-trunk

Merge of descr-branch back into trunk.
author Tim Peters <tim.peters@gmail.com>
date Thu, 02 Aug 2001 04:15:00 +0000
parents 6f6f965c5e2d
children 167e7f98b51f
line wrap: on
line diff
--- a/Include/listobject.h	Wed Aug 01 21:44:14 2001 +0000
+++ b/Include/listobject.h	Thu Aug 02 04:15:00 2001 +0000
@@ -26,7 +26,7 @@
 
 extern DL_IMPORT(PyTypeObject) PyList_Type;
 
-#define PyList_Check(op) ((op)->ob_type == &PyList_Type)
+#define PyList_Check(op) PyObject_TypeCheck(op, &PyList_Type)
 
 extern DL_IMPORT(PyObject *) PyList_New(int size);
 extern DL_IMPORT(int) PyList_Size(PyObject *);