[SciPy-dev] Suppressing of numpy __mul__, __div__ etc
Alan G Isaac
Thu Dec 17 08:21:21 CST 2009
On 12/17/2009 4:45 AM, Dag Sverre Seljebotn wrote:
> NumPy is special because rmul never gets called with NumPy arrays, which
> can be quite inconvenient at times.
Is this not the real problem?
After all, np.multiply could be used when the need arises,
removing any need to override the standard Python precedence
I know this view will be unpopular, and someone will surely
argue that changing it would make the interaction between matrices
and arrays too obscure. But in the long run, it may prove worth
asking whether this convenience feature is actually inconvenient.
More information about the SciPy-Dev