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

Matěj Laitl matej at laitl.cz
Tue Jan 22 18:35:22 CET 2013


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?

Cython 0.18b1 3e37475ec5098eef2c421.

Attached patch trivially extends cpp_exceptions_nogil test to show the 
problem.

Cheers,
		Matěj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Extend-cpp_exceptions_nogil-test-with-nogil-cdef-fun.patch
Type: text/x-patch
Size: 1361 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20130122/93143bb7/attachment.bin>


More information about the cython-devel mailing list