We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42abb05 commit 17a4f9eCopy full SHA for 17a4f9e
Python/gc.c
@@ -1019,12 +1019,6 @@ clear_weakrefs(PyGC_Head *unreachable)
1019
PyGC_Head *gc;
1020
PyGC_Head *next;
1021
1022
- /* Clear all weakrefs to the objects in unreachable. If such a weakref
1023
- * also has a callback, move it into `wrcb_to_call` if the callback
1024
- * needs to be invoked. Note that we cannot call `tp_clear` until
1025
- * all weakrefs to unreachable objects are cleared, lest finalizers
1026
- * resurrect an unreachable object via a still-active weakref.
1027
- */
1028
for (gc = GC_NEXT(unreachable); gc != unreachable; gc = next) {
1029
PyWeakReference **wrlist;
1030
0 commit comments