Hi,
I'm using kids.cache to cache some objects I create, but can't work out how to use destructors properly.
I tried adding del but this seems to get called when every instance is destroyed, is there a way to get called just when the cached instance is destroyed (ie when cache is cleared, or usually atexit I guess) ?
Hi,
I'm using kids.cache to cache some objects I create, but can't work out how to use destructors properly.
I tried adding del but this seems to get called when every instance is destroyed, is there a way to get called just when the cached instance is destroyed (ie when cache is cleared, or usually atexit I guess) ?