[Tutor] Object destruction

Cameron Simpson cs at cskk.id.au
Tue May 24 19:59:34 EDT 2022


On 25May2022 09:10, Cameron Simpson <cs at cskk.id.au> wrote:
>On 24May2022 14:27, Dimitar Ivanov <dimitarxivanov at gmail.com> wrote:
>>I'm trying to come up with a (working) design of tracking an object
>>throughout its lifecycle but I'm unable to find quite what I'm looking for,
>>so I hope you folks will be able to give me some tips.
[...]
>
>_Any_ reference, or when the final-reference-except-for-your-tracer
>reference is removed? For the latter, see the weakref module:
>https://docs.python.org/3/library/weakref.html#module-weakref
>For making references to objects which do not contribute to their
>reference count.

I did not notice that you are already using weakref. Apologies,
Cameron Simpson <cs at cskk.id.au>


More information about the Tutor mailing list