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, pablogsal, tim.peters
Date 2020-04-20.15:29:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587396591.62.0.770292568421.issue40312@roundup.psfhosted.org>
In-reply-to
Content
Also I just noticed this statement:

> In current CPython, for your ForeverObject(False), `del o` does not make the object trash "for real".  __del__ runs immediately (due to deterministic, synchronous reference counting) and resurrects it.  That cuts off the "about to have its memory destroyed and recycled" part, so the callback doesn't run.

The problem is the callback _does_ run even though the object is resurrected! :)

(Only if going through gc)
History
Date User Action Args
2020-04-20 15:29:51a-feldsetrecipients: + a-feld, tim.peters, pablogsal, deekay
2020-04-20 15:29:51a-feldsetmessageid: <1587396591.62.0.770292568421.issue40312@roundup.psfhosted.org>
2020-04-20 15:29:51a-feldlinkissue40312 messages
2020-04-20 15:29:51a-feldcreate