Skip to content

Commit 17a4f9e

Browse files
committed
Remove inaccurate comment.
1 parent 42abb05 commit 17a4f9e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Python/gc.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,12 +1019,6 @@ clear_weakrefs(PyGC_Head *unreachable)
10191019
PyGC_Head *gc;
10201020
PyGC_Head *next;
10211021

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-
*/
10281022
for (gc = GC_NEXT(unreachable); gc != unreachable; gc = next) {
10291023
PyWeakReference **wrlist;
10301024

0 commit comments

Comments
 (0)