[Cython] `_save` was not declared when cathing C++ exceptions in nogil cdef function

Matěj Laitl matej at laitl.cz
Sat Jan 26 13:24:57 CET 2013


On 22. 1. 2013 Matěj Laitl wrote:
> Hi again,
> another minor problem I've stumbled upon - when I call an "except +"
> function  in a cdef ... nogil function, gcc fails to compile the .cpp file.
> Perhaps a missing PyThreadState *_save; declaration in case of nogil
> functions?

Okay, I think I've found the cause, see 
https://github.com/cython/cython/pull/178

Beware that I'm rather new to Cython development, so the patch may be rather 
off, but it fixes the problem for me. :-)

Cheers,
			Matěj


More information about the cython-devel mailing list