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

Stefan Behnel stefan_ml at behnel.de
Tue Sep 11 21:37:03 CEST 2007


Ulisses Furquim wrote:
> On 9/11/07, Stefan Behnel <stefan_ml at behnel.de> wrote:
>> Here's a patch against the last version I sent that does that. It accepts a
>> list of comma separated identifiers after "with", but currently only allows "GIL".
> 
> Nice. :-)
> 
>> I implemented the list right in the parser. Maybe we should move it somewhere
>> else, but that's not a major concern for me.
> 
> Maybe in Scanning.py together with the list of keywords?

Sure, why not. Here's a complete patch for the new feature. I also submitted
it to the bug tracker (including an hg export).

https://bugs.launchpad.net/cython/+bug/138963

Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cython-with-GIL-simple.patch
Type: text/x-diff
Size: 8969 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20070911/8b21f8ae/attachment.bin 


More information about the Pyrex mailing list