Commit b11477b3 authored by Levin Zimmermann's avatar Levin Zimmermann

fix compilation 2

golang/_golang.pyx:122:22: Cannot assign type 'void (void *) except * nogil' to 'void (*)(void *) noexcept nogil'

https://github.com/scikit-learn/scikit-learn/issues/25609
parent 5d3dab76
...@@ -133,7 +133,7 @@ cdef extern from "Python.h" nogil: ...@@ -133,7 +133,7 @@ cdef extern from "Python.h" nogil:
PyGILState_STATE PyGILState_Ensure() PyGILState_STATE PyGILState_Ensure()
void PyGILState_Release(PyGILState_STATE) void PyGILState_Release(PyGILState_STATE)
cdef void _goviac(void *arg) nogil: cdef extern void _goviac(void *arg) noexcept nogil:
# create new py thread state and keep it alive while __goviac runs. # create new py thread state and keep it alive while __goviac runs.
# #
# Just `with gil` is not enough: for `with gil` if exceptions could be # Just `with gil` is not enough: for `with gil` if exceptions could be
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment