[Numpy-discussion] Questions on error handling/refcounting in some ufunc object loops.

Charles R Harris charlesr.harris@gmail....
Fri Nov 14 00:06:16 CST 2008

On Thu, Nov 13, 2008 at 10:58 PM, Robert Kern <robert.kern@gmail.com> wrote:

> On Thu, Nov 13, 2008 at 23:31, David Cournapeau
> <david@ar.media.kyoto-u.ac.jp> wrote:
> > Charles R Harris wrote:
> >>
> >> I'm pretty sure about the reference leak. But what should be the
> >> standard for checking arguments and error returns in these object loops?
> >
> > I was wondering the same when I worked on that code a few weeks ago;
> > since the ufunc "return" void, I wonder how feasible it would be to
> > return an int instead for error messaging. Since the ufunc are not used
> > directly outside numpy, it should not break the API/ABI in any way ?
> There are ufunc loop implementations outside of numpy. It would break
> the API, specifically the typedef PyUFuncGenericFunction.

Good point!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20081113/9b9eada2/attachment.html 

More information about the Numpy-discussion mailing list