Re: [Numpy-discussion] Error handling in a ufunc inner loop.

2019-09-29 Thread Warren Weckesser
On 9/29/19, Warren Weckesser wrote: > This is a new thread to address the question of error handling in a ufunc > loop that was brought up in the thread on handling core dimensions of > length zero. I'm attempting to answer my own question about the idiomatic > way to handle an error in an inner

Re: [Numpy-discussion] Forcing gufunc to error with size zero input

2019-09-29 Thread Warren Weckesser
On 9/29/19, Warren Weckesser wrote: > On 9/28/19, Eric Wieser wrote: >> Can you just raise an exception in the gufuncs inner loop? Or is there no >> mechanism to do that today? > > Maybe? I don't know what is the idiomatic way to handle errors > detected in an inner loop. And pushing this

[Numpy-discussion] Error handling in a ufunc inner loop.

2019-09-29 Thread Warren Weckesser
This is a new thread to address the question of error handling in a ufunc loop that was brought up in the thread on handling core dimensions of length zero. I'm attempting to answer my own question about the idiomatic way to handle an error in an inner loop. The use of the GIL with a ufunc loop