mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
Make the PyXXX_Check() macros for the numeric types inheritance-aware.
This commit is contained in:
parent
c51395d797
commit
c16fcdf533
4 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ typedef struct {
|
|||
|
||||
extern DL_IMPORT(PyTypeObject) PyFloat_Type;
|
||||
|
||||
#define PyFloat_Check(op) ((op)->ob_type == &PyFloat_Type)
|
||||
#define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
|
||||
|
||||
/* Return Python float from string PyObject. Second argument ignored on
|
||||
input, and, if non-NULL, NULL is stored into *junk (this tried to serve a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue