[Pyrex] [Cython-dev] Callbacks from threads and PyGILState_Ensure/PyGILState_Release

Ulisses Furquim ulisses.silva at openbossa.org
Fri Sep 21 22:17:41 CEST 2007


Hi,

On 9/21/07, Ulisses Furquim <ulisses.silva at openbossa.org> wrote:
> Ok, I'd given it a try and a first version of this patch is attached
> (for Pyrex 0.9.5.1a). It implements only this special case to
> recognise 'with GIL' at the top level of the body and generate the
> GIL-acquiring and releasing code. It supports a list of comma
> separated identifiers after 'with' (exactly like the patch for Cython)
> if we ever want to extend this to other "contexts".

Same patch but without parentheses to return tuples. Sorry about that.

-- Ulisses
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyrex-with-block-v2.patch
Type: text/x-patch
Size: 6342 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20070921/a65a247b/attachment.bin 


More information about the Pyrex mailing list