Hi Volker, On 26 Dez., 14:36, Volker Braun <vbraun.n...@gmail.com> wrote: > except for > weakref.WeakValueDictionary the size of containers should never be changed > by a garbage collection.
The point is that a WeakValueDictionary is not good enough for the coercion cache: It is also two third of the keys that need a weak reference. And a WeakKeyDictionary wouldn't work either, since the last third of the keys does not allow for weak references. Hence, what I do in #715, I try to mimmick the behaviour of a Weak...Dictionary, by making sure that an item of the dictionary will be removed if it involves a reference that became invalid. Cheers, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org