On Monday, December 31, 2012 7:59:21 AM UTC+1, Nils Bruin wrote: > > On Dec 24, 4:44 pm, Jean-Pierre Flori <jpfl...@gmail.com> wrote: > > > Any reason for calling directly _refcache.__delitem__ rather than del > > _refcache ? > > Changing this solves the problem, but surely only by hiding the bug... > > I'm not so sure this only hides it. If my analysis is correct then > this line is virtually the only possible culprit. Are we positive that > del A[b] > is exactly the same as > del A.__delitem__(b) > [obviously it's not!] It solves the problem for me, so I'd be tempted > to propose this as a solution. > > When I had a quick look at it, it thought they were not exactly the same. But then I had a look at the C code Cython generated and thought it was the same... So we should look back at the C code, or ask a Python/Cython guru.
> (by the way, reading PyObject_ClearWeakRefs I think that python (of > course) does do the right thing) > -- 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.