[Cython] 'with gil:' statement

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 18 01:18:58 CET 2011

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