On Thu, Jul 09, 2009 at 10:41:38AM -0500, Robert Kern wrote:
> We could change ufunc_generic_call() (i.e. the C implementation of
> ufunc.__call__) to use a new function like PyUFunc_GenericFunction
> except with the refcount-1 semantics. This allows old C-level to
> remain unchanged but let Python expressions have the optimized
> semantics.

> Is there a hole in my reasoning?

I don't know the C part of numpy well (actually, I know it very badly),
but it looks to me as your suggestion is so far the cleanest I have
heard.

Gaƫl
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to