Skip to content

Commit f14f0ba

Browse files
Reset type cache after finalization
1 parent 9731dd2 commit f14f0ba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Objects/typeobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10767,6 +10767,8 @@ slot_tp_finalize(PyObject *self)
1076710767
}
1076810768
}
1076910769

10770+
PyType_Modified(Py_TYPE(self));
10771+
1077010772
_PyThreadState_PopCStackRef(tstate, &cref);
1077110773

1077210774
/* Restore the saved exception. */

0 commit comments

Comments
 (0)