On Tue, Jul 3, 2018 at 4:02 PM Jeroen Demeyer <[email protected]> wrote:
>
> On 2018-07-03 15:56, Simon King wrote:
> > This tuple is not weak-refable
>
> That's just a detail. We could easily implement a weakrefable tuple-like
> object.

That was my thinking as well.  I believe you would have to.  My
thinking was something where when you create the container (of fixed
size, so tuple-like) it includes a simple counter equal to the number
of objects it references (which would all be weakrefs).  The container
also stores a strongreference to itself.  Those weakrefs have a
callback that decrements the counter and, when it reaches zero, the
strong reference is deleted and the container goes away too.
Something like.  I'm not 100% sure it would work.  But anyways that's
an implementation detail.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to