From: Jean-Paul Calderone <calderone.jeanp...@gmail.com>
Date: Thu, 11 Oct 2012 06:21:44 -0700 (PDT)
Local: Thurs, Oct 11 2012 9:21 am
Subject: Re: [cython-users] Failing GC assertion when defining extension types with weakref support
On Thursday, October 11, 2012 2:44:15 AM UTC-4, Stefan Behnel wrote: Indeed. I forgot about that while minimizing the example. This doesn't > You are accessing a Python object attribute in __dealloc__(). Python's affect my actual code, I think, as the "list of objects" is actually held inside the c++ object pointed to by self.thisptr - and I think that self.thisptr is safe in __dealloc__? I dug a little more and came across something I don't understand in the e = (*v)(o->__weakref__, a); if (e) return e; Based on inspection of some types defined by CPython itself (eg the ones in I've also filed this bug against CPython about the poor documentation: Perhaps it will result in some more clarity on the issue. As I mentioned, the example still doesn't work. The next failure after Fatal Python error: bullet/bullet.cpp:724 object at 0x1aa9a58 has negative I wonder if this is due to the casts in the example doing the wrong thing. Thanks, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||