[Pyrex] pyrex and GIL

Bob Ippolito bob at redivi.com
Thu Feb 19 00:47:40 CET 2004


On Feb 18, 2004, at 6:14 PM, Simon Burton wrote:

>> Just out of curiosity, how does one acquire the GIL (Python/C API)?
>>
>
> 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
> calling into Python from a C thread is

I don't know it off the top of my head, but I'm pretty sure there is a 
different Python 2.3 API for doing this that does not assume you have a 
reference to an interpreter object (which is the common case).

-bob





More information about the Pyrex mailing list