Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e40d8 commit c5cb077Copy full SHA for c5cb077
1 file changed
Include/object.h
@@ -141,7 +141,7 @@ static inline PyTypeObject* _Py_TYPE(const PyObject *ob) {
141
142
143
static inline int _Py_IS_TYPE(const PyObject *ob, const PyTypeObject *type) {
144
- return ob->ob_type == type;
+ return Py_TYPE(ob) == type;
145
}
146
#define Py_IS_TYPE(ob, type) _Py_IS_TYPE(_PyObject_CAST_CONST(ob), type)
147
0 commit comments