This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, corona10, erlendaasland, kj, miss-islington, nascheme, ncoghlan, pablogsal, shihai1991, vstinner
Date 2021-05-27.13:56:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622123779.68.0.981984227657.issue42972@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-05-27 13:56:19vstinnersetrecipients: + vstinner, nascheme, ncoghlan, christian.heimes, corona10, pablogsal, miss-islington, shihai1991, erlendaasland, kj
2021-05-27 13:56:19vstinnersetmessageid: <1622123779.68.0.981984227657.issue42972@roundup.psfhosted.org>
2021-05-27 13:56:19vstinnerlinkissue42972 messages
2021-05-27 13:56:19vstinnercreate