Windson Yang <wiwind...@outlook.com> added the comment:
The fixed looks easy, we call `PyObject_CallFinalizerFromDealloc` before PyObject_ClearWeakRefs. But I can't come up with the use case for testing when generator resurrects from `PyObject_CallFinalizer`. Any ideas? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue14934> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com