[Cython] 'with gil:' statement

Stefan Behnel stefan_ml at behnel.de
Fri Mar 18 07:07:31 CET 2011

Greg Ewing, 18.03.2011 01:18:
> mark florisson wrote:
>> I think we could support it without having to acquire
>> the GIL in the finally clause.
> That was the intention -- the code in the finally clause would
> be subject to the same nogil restrictions as the rest of
> the nogil block.
> My point is that as long as you're allowing exceptions to be
> tunnelled through nogil blocks, they should respect any finally
> clauses that they pass through on the way.



More information about the cython-devel mailing list