junyixie <xie.ju...@outlook.com> added the comment:
fix: only main interpreter fini, clear method cache. void _PyType_Fini(PyInterpreterState *interp) { if (_Py_IsMainInterpreter(interp)) { clear_slotdefs(); _PyType_ClearCache(&interp->type_cache); } } when python4.0? type isolate, each interpreter dealloc should clear method cache. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43441> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com