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

Windson Yang report at bugs.python.org
Sat Mar 16 03:18:54 EDT 2019


Windson Yang <wiwindson at outlook.com> added the comment:

In the docs https://docs.python.org/3/extending/newtypes.html#weak-reference-support points out:

> /* Clear weakrefs first before calling any destructors */

So maybe we should also update the docs after fix this bug. Anyway, I will try to understand/fix this bug.

----------
nosy: +Windson Yang
versions: +Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue14934>
_______________________________________


More information about the Python-bugs-list mailing list