Suzhou-Tongyuan / jnumpy

Writing Python C extensions in Julia within 5 minutes.
MIT License
234 stars 8 forks source link

suppress errors in the fast loading path #55

Closed thautwarm closed 2 years ago

thautwarm commented 2 years ago

we might call redirect_stderr at https://github.com/Suzhou-Tongyuan/jnumpy/blob/65cea6cc6a750911ab2c1545d94af26008e7b240/jnumpy/init.py#L172

songjhaha commented 2 years ago

use_gil=False should not print out error.

It seems error message comes from: https://github.com/Suzhou-Tongyuan/jnumpy/blob/1d7e2007abb10fcc29cb4efb0e190c4829bd40f6/jnumpy/apis.py#L87-L89

And this error message seems necessary.

suppress this error in fast path seems fine.

songjhaha commented 2 years ago

done by #58