[Pyrex] pyrex and GIL

Andreas Kostyrka andreas at mtg.co.at
Thu Feb 19 09:25:42 CET 2004


On Thu, Feb 19, 2004 at 07:14:54AM +0800, Simon Burton wrote:
> >Just out of curiosity, how does one acquire the GIL (Python/C API)?
> >
> >Andreas
> >
> >
> 
> >From sec 8.1 of the python/C api ref:
> http://www.python.org/doc/2.3/api/threads.html
> 
> Assuming you have access to an interpreter object, the typical idiom for
Well, let's restate it differently ;) Where can I get an interp?
(I've got the problem of having an embedded Python with Swig, Sip and Pyrex
mixed. Sip seems releases the GIL, and stores that tstate in an local variable
I do not have access to later :( )

Andreas




More information about the Pyrex mailing list