On Thu, Nov 13, 2008 at 11:01 PM, David Cournapeau <
[EMAIL PROTECTED]> wrote:

> Charles R Harris wrote:
> >
> >
> > On Thu, Nov 13, 2008 at 10:50 PM, David Cournapeau
> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> > wrote:
> >
> >     Robert Kern wrote:
> >     >
> >     > There are ufunc loop implementations outside of numpy. It would
> >     break
> >     > the API, specifically the typedef PyUFuncGenericFunction.
> >     >
> >
> >     Would something like a ufunc-specific errno be acceptable in that
> >     case ?
> >
> >
> > That might get tricky with threading in the mix.
>
> The trick is at configuration, to know how to "tag" a variable for TLS.
> Windows can do it, posix has it (errno is thread-specific in recent
> posix). I don't know of any other solution, since returning error code
> is not possible, but maybe there is ?


What happens if threading is turned on and a loop calls a python function
that sets an error. I don't recall if the loops are executed with the global
lock held.

Chuck
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to