Skip to content

Commit 546b8f1

Browse files
richardotisisuruf
authored andcommitted
FIX: acquire gil when raising exception inside nogil function, for cython <0.29
1 parent 8d7b827 commit 546b8f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

symengine/lib/symengine_wrapper.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4508,7 +4508,8 @@ cdef class _Lambdify(object):
45084508
raise ValueError("Not supported")
45094509

45104510
cdef void unsafe_real_ptr(self, double *inp, double *out) nogil:
4511-
raise ValueError("Not supported")
4511+
with gil:
4512+
raise ValueError("Not supported")
45124513

45134514
cpdef unsafe_real(self,
45144515
double[::1] inp, double[::1] out,

0 commit comments

Comments
 (0)