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 ede356d commit b3874ceCopy full SHA for b3874ce
1 file changed
Objects/typeobject.c
@@ -11724,7 +11724,7 @@ fixup_slot_dispatchers(PyTypeObject *type)
11724
// This lock isn't strictly necessary because the type has not been
11725
// exposed to anyone else yet, but update_ont_slot calls find_name_in_mro
11726
// where we'd like to assert that the type is locked.
11727
- BEGIN_TYPE_LOCK();
+ ASSERT_NEW_TYPE_OR_LOCKED(type);
11728
11729
PyObject *mro = Py_NewRef(lookup_tp_mro(type));
11730
@@ -11767,7 +11767,6 @@ fixup_slot_dispatchers(PyTypeObject *type)
11767
Py_XDECREF(mro_dict);
11768
Py_DECREF(mro);
11769
11770
- END_TYPE_LOCK();
11771
return res;
11772
}
11773
0 commit comments