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 05d0807 commit dde0b83Copy full SHA for dde0b83
Objects/abstract.c
@@ -2638,11 +2638,6 @@ object_isinstance(PyObject *inst, PyObject *cls)
2638
static int
2639
object_recursive_isinstance(PyThreadState *tstate, PyObject *inst, PyObject *cls)
2640
{
2641
- /* Quick test for an exact match */
2642
- if (Py_IS_TYPE(inst, (PyTypeObject *)cls)) {
2643
- return 1;
2644
- }
2645
-
2646
/* We know what type's __instancecheck__ does. */
2647
if (PyType_CheckExact(cls)) {
2648
return object_isinstance(inst, cls);
0 commit comments