[issue14934] generator objects can clear their weakrefs before being resurrected

Windson Yang report at bugs.python.org
Wed Mar 20 22:46:25 EDT 2019


Windson Yang <wiwindson at 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 <report at bugs.python.org>
<https://bugs.python.org/issue14934>
_______________________________________


More information about the Python-bugs-list mailing list