diff options
| author | Guido van Rossum <guido@python.org> | 2001-08-29 15:45:32 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2001-08-29 15:45:32 +0000 |
| commit | c16fcdf533583039d687f8ca2e88a1c21f3feeb3 (patch) | |
| tree | 987f9612707f568bcc20164da3993670073cfc6f /Include/floatobject.h | |
| parent | c51395d79744a1aeb456d34b9bf5b5ea110ee677 (diff) | |
| download | cpython-git-c16fcdf533583039d687f8ca2e88a1c21f3feeb3.tar.gz | |
Make the PyXXX_Check() macros for the numeric types inheritance-aware.
Diffstat (limited to 'Include/floatobject.h')
| -rw-r--r-- | Include/floatobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/floatobject.h b/Include/floatobject.h index 6e36a2f318..9f67bc107d 100644 --- a/Include/floatobject.h +++ b/Include/floatobject.h @@ -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 |
