Hi,
I have several cython cdef functions with various return types. (void / int / etc...)
Some of these functions say a, b, c call a function `safe_realloc` which will raise a python `MemoryError` based on a condition.
Now there are several other functions say d, e, f which may or may not call a, b and c.
I imperatively need the program to crash if there is a MemoryError raised when safe_realloc is called at any point at any level of nested call. Currently in our codebase this is not the case and the error goes "Ignored"...
The cython docs state that if except * is used at the declaration of cdef functions that do not return python object,
"T
his form causes Cython to generate a call to PyErr_Occurred()
after every call to <fn>".
How costly is this `PyErr_Occured` will it induce significant slow ups if "except *" is used blindly for all cdef declarations (a, b, c, d, e, f, safe_realloc) ?
Thanks!