Thanks to visit codestin.com Credit goes to github.com
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 b60654b commit 32efcdbCopy full SHA for 32efcdb
1 file changed
Modules/_weakref.c
@@ -685,14 +685,11 @@ weakref_proxy(PyObject *self, PyObject *args)
685
* is installed in the init_weakref() function. It is called by the
686
* tp_dealloc handler to clear weak references.
687
*
688
- * This returns true if the object should be deallocated, and false if the
689
- * object is resurrected and deallocation should be aborted.
690
- *
691
* This iterates through the weak references for 'object' and calls callbacks
692
- * until one resurrects the object, at which point it stops invalidating
693
- * weak references and returns false.
+ * for those references which have one. It returns when all callbacks have
+ * been attempted.
694
*/
695
-static
+static void
696
cleanup_helper(PyObject *object)
697
{
698
PyWeakReference **list;
0 commit comments