[Numpy-discussion] performing operations in-place in numpy

Gael Varoquaux gael.varoquaux@normalesup....
Thu Jul 9 11:30:52 CDT 2009


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


More information about the NumPy-Discussion mailing list