silx-kit / silx

silx toolkit
http://www.silx.org/doc/silx/latest/
MIT License
129 stars 73 forks source link

`noexcept clause is ignored` warning in Cython code #4105

Closed t20100 closed 5 months ago

t20100 commented 5 months ago

The following warnings are raised with Cython 3.0.10 and Python 3.12.2:

[1/1] Cythonizing src/silx/image/marchingsquares/_mergeimpl.pyx
warning: src/silx/image/marchingsquares/_mergeimpl.pyx:88:22: noexcept clause is ignored for function returning Python object
warning: src/silx/image/marchingsquares/_mergeimpl.pyx:111:15: noexcept clause is ignored for function returning Python object
t20100 commented 5 months ago

Closing, this looks to be an issue in cython: https://groups.google.com/g/cython-users/c/q5FzO2d88Og

vasole commented 5 months ago

Reopening just to make sure this comment is read.

That reminds me of a very similar warning when building fisx...

https://github.com/vasole/fisx/pull/70/files

Have you tried to make sure the methods wrapped with except + are nogil compatible?

t20100 commented 5 months ago

Having a second look at this issue, it does change the generated C++ code (see PR #4110)