On Dec 31, 3:23 pm, Robert Bradshaw <rober...@math.washington.edu>
wrote:
> Curiously, we don't mark our objects as tracked or untracked in the
> constructor or destructor respectively in Cython at all. Hmm...

But the cinit and dealloc of object probably do support GC tracking,
so I suppose they get tracked and untracked from that. But of course,
since the weakrefs only get cleared on a subclass level, that happens
under "tracked" control. That sounds problematic because that means
cython classes that inherit from object already get tracked by GC when
their cinit hasn't completed yet and when their dealloc is already in
progress. I bet there must be examples of this in the python library
that show how to cooperate with superclasses that already want to
control tracking/untracking.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to