diff options
Diffstat (limited to 'Include/bytesobject.h')
-rw-r--r-- | Include/bytesobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/bytesobject.h b/Include/bytesobject.h index 9c1f4ba..a649d39 100644 --- a/Include/bytesobject.h +++ b/Include/bytesobject.h @@ -30,7 +30,7 @@ PyAPI_DATA(PyTypeObject) PyBytes_Type; /* Type check macros */ #define PyBytes_Check(self) PyObject_TypeCheck(self, &PyBytes_Type) -#define PyBytes_CheckExact(self) ((self)->ob_type == &PyBytes_Type) +#define PyBytes_CheckExact(self) (Py_Type(self) == &PyBytes_Type) /* Direct API functions */ PyAPI_FUNC(PyObject *) PyBytes_FromObject(PyObject *); |