[Numpy-discussion] optimizing ndarray.__setitem__
Nathaniel Smith
njs at pobox.com
Thu May 5 13:53:10 EDT 2011
On Thu, May 5, 2011 at 9:54 AM, Robert Kern <robert.kern at gmail.com> wrote:
> On Thu, May 5, 2011 at 02:29, Christoph Groth <cwg at falma.de> wrote:
>> Has something like __index_iadd__ ever been considered seriously? Not
>> to my (limited) knowledge.
>
> Only on this list, I think. :-)
>
> I don't think it will ever happen. Only numpy really cares about it,
> and adding another __special__ method for each __iop__ is a lot of
> additional methods that need to be supported.
Maybe in the context of PyPy someone will come up with a clever way to
implement template-expression style operator fusion for numpy. That'd
be kinda neat.
-- Nathaniel
More information about the NumPy-Discussion
mailing list