This code appears to have been added to fix
https://bugs.python.org/issue3100 - A crash involving a weakref subclass.
-gps
On Tue, Sep 6, 2016 at 3:51 PM Larry Hastings wrote:
>
> This is all about current (3.6) trunk.
>
> In Objects/weakrefobject.c, we have the function
> PyObject_ClearWeakRef
This is all about current (3.6) trunk.
In Objects/weakrefobject.c, we have the function
PyObject_ClearWeakRefs(). This is called when a generic object that
supports weakrefs is destroyed; this is the code that calls the
callbacks. Here's a little paragraph of code from the center:
for