Re: OT: Python C API and reference counting

2006-11-10 Thread Dan Eloff
On 11/9/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: I would have assumed that the code is safe as the calling Python stack frame still holds a reference count on any objects passed to you and since it is waiting for you to finish, even if in an allow threads state, there shouldn't be anyway t

Re: OT: Python C API and reference counting

2006-11-09 Thread Graham Dumpleton
Dan Eloff wrote .. > I know this isn't about mod_python, but I can think of nobody better > qualified to answer this question than mod_python developers. > > If in a C function you release the GIl using begin/end allow threads, > does it change your responsibilites with regard to the reference > c

OT: Python C API and reference counting

2006-11-09 Thread Dan Eloff
I know this isn't about mod_python, but I can think of nobody better qualified to answer this question than mod_python developers. If in a C function you release the GIl using begin/end allow threads, does it change your responsibilites with regard to the reference counts on the input parameters?