On 2018-03-12, Simon King <[email protected]> wrote: > Hi Jeroen, > > On 2018-03-12, Jeroen Demeyer <[email protected]> wrote: >> This is just the usual Py_DECREF of Python objects, it has nothing to do >> with the cyclic garbage collector: the behaviour remains the same even >> with gc.disable(). >> >> This makes me think that we might need a version of CachedRepresentation >> which keeps semi-strong references: these would only be deleted by the >> cyclic garbage collector but not by a simple Py_DECREF(). > > Would that remotely be possible without massive changes to Python > infrastructure?
Deeper changes than a monkey patch to gc.collect seem not to be needed, see #24954. Best regards, Simon -- 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.
