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 a-feld
Recipients a-feld, deekay, tim.peters
Date 2020-04-19.02:51:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587264673.44.0.845842380343.issue40312@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the response!

> if a weakref W refers to object O, and W and O are _both_ in cyclic trash

I believe that in the examples W is not in cyclic trash, but remains referenced as a global in the frame. Only O is in cyclic trash (O references itself).

I would expect that W's callback would be invoked in this case, but only after O is guaranteed to be deleted. In some cases O can be resurrected in the finalizer.
History
Date User Action Args
2020-04-19 02:51:13a-feldsetrecipients: + a-feld, tim.peters, deekay
2020-04-19 02:51:13a-feldsetmessageid: <1587264673.44.0.845842380343.issue40312@roundup.psfhosted.org>
2020-04-19 02:51:13a-feldlinkissue40312 messages
2020-04-19 02:51:13a-feldcreate