Cython needs better support for functions that require the GIL

Bug #138963 reported by scoder
2
Affects Status Importance Assigned to Milestone
Cython
Fix Released
Wishlist
Unassigned

Bug Description

Ulisses Furquim wrote a patch that implements a syntax extension to grab and release the GIL when entering and leaving a function. This is handy as Cython tends to run INCREFs before the start of the user code, so there is currently no way to surround function code with a GIL context - except for writing a separate pass-through wrapper function. The patch avoids this overhead.

The discussion on the mailing list that lead to the current implementation is here:

http://comments.gmane.org/gmane.comp.python.cython.devel/18?set_lines=100000

Revision history for this message
scoder (scoder) wrote :

Here's the patch.

description: updated
Revision history for this message
scoder (scoder) wrote :
scoder (scoder)
Changed in cython:
importance: Undecided → Wishlist
status: New → In Progress
Revision history for this message
scoder (scoder) wrote :

This has been incorporated into both Cython and Pyrex.

Changed in cython:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.