STINNER Victor <vstin...@python.org> added the comment:

So it seems like the weakref list (__weaklistoffset__) doesn't have to be 
handled by visit, clear or free functions, it only has to be deallocated with 
PyObject_ClearWeakRefs() in the dealloc function.

I noticed that when reviewing partial_clear(partialobject *pto) in PR 26363.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42972>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to