Message366845
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) |
|
Date |
User |
Action |
Args |
2020-04-20 15:29:51 | a-feld | set | recipients:
+ a-feld, tim.peters, pablogsal, deekay |
2020-04-20 15:29:51 | a-feld | set | messageid: <1587396591.62.0.770292568421.issue40312@roundup.psfhosted.org> |
2020-04-20 15:29:51 | a-feld | link | issue40312 messages |
2020-04-20 15:29:51 | a-feld | create | |
|