Cython needs better support for functions that require the GIL
Bug #138963 reported by
scoder
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://
Changed in cython: | |
importance: | Undecided → Wishlist |
status: | New → In Progress |
To post a comment you must log in.
Here's the patch.