2 ms·
> Weak references are the right way to deal with cache objects, imho. Yet, I disagree ;) Whether a weakref is the correct thing to use or not depends entirely
by dom0 10y ago
> Weak references are the right way to deal with cache objects, imho.
Yet, I disagree ;) Whether a weakref is the correct thing to use or not depends entirely on the purpose of the cache. I often find myself using caches were weakref would not be very useful, because it would cool the cache a lot.