On Mar 27, 2009, at 2:33 PM, Lisandro Dalcin wrote:

> On Fri, Mar 27, 2009 at 5:07 PM, Robert Bradshaw
> <[email protected]> wrote:
>>
>> Anytime you mess with PyObject* you're able to completely confuse the
>> refnanny machinery.
>>
>
> Are you sure? I believe It is rather hard to break it... Of course, as
> long as you do not actually force deallocation of some PyObject*, and
> in that case you'll likely segfault Python instead of confusing the
> refnanny.

If you incref, decref, or otherwise call into the C/API that steals/ 
returns new references, it messes it up. Just passing it around won't  
hurt of course.

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to