diff options
Diffstat (limited to 'Include/funcobject.h')
-rw-r--r-- | Include/funcobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/funcobject.h b/Include/funcobject.h index c6dd67d..c5cc9d2 100644 --- a/Include/funcobject.h +++ b/Include/funcobject.h @@ -43,7 +43,7 @@ typedef struct { PyAPI_DATA(PyTypeObject) PyFunction_Type; -#define PyFunction_Check(op) (Py_TYPE(op) == &PyFunction_Type) +#define PyFunction_Check(op) Py_IS_TYPE(op, &PyFunction_Type) PyAPI_FUNC(PyObject *) PyFunction_New(PyObject *, PyObject *); PyAPI_FUNC(PyObject *) PyFunction_NewWithQualName(PyObject *, PyObject *, PyObject *); |