Make the PyXXX_Check() macros for the numeric types inheritance-aware.

This commit is contained in:
Guido van Rossum 2001-08-29 15:45:32 +00:00
parent c51395d797
commit c16fcdf533
4 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ typedef struct {
extern DL_IMPORT(PyTypeObject) PyInt_Type;
#define PyInt_Check(op) ((op)->ob_type == &PyInt_Type)
#define PyInt_Check(op) PyObject_TypeCheck(op, &PyInt_Type)
extern DL_IMPORT(PyObject *) PyInt_FromString(char*, char**, int);
#ifdef Py_USING_UNICODE