Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32efcdb

Browse files
committed
cleanup_helper(): Added missing "void" type for the function, updated
comments to reflect reality.
1 parent b60654b commit 32efcdb

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Modules/_weakref.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -685,14 +685,11 @@ weakref_proxy(PyObject *self, PyObject *args)
685685
* is installed in the init_weakref() function. It is called by the
686686
* tp_dealloc handler to clear weak references.
687687
*
688-
* This returns true if the object should be deallocated, and false if the
689-
* object is resurrected and deallocation should be aborted.
690-
*
691688
* 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.
689+
* for those references which have one. It returns when all callbacks have
690+
* been attempted.
694691
*/
695-
static
692+
static void
696693
cleanup_helper(PyObject *object)
697694
{
698695
PyWeakReference **list;

0 commit comments

Comments
 (0)