Make the Py<type>_Check() macro use PyObject_TypeCheck().

This commit is contained in:
Guido van Rossum 2001-08-30 03:08:07 +00:00
parent deb77e8394
commit 5eef77a21b
3 changed files with 3 additions and 3 deletions

View file

@ -372,7 +372,7 @@ typedef struct {
extern DL_IMPORT(PyTypeObject) PyUnicode_Type;
#define PyUnicode_Check(op) (((op)->ob_type == &PyUnicode_Type))
#define PyUnicode_Check(op) PyObject_TypeCheck(op, &PyUnicode_Type)
/* Fast access macros */
#define PyUnicode_GET_SIZE(op) \