[NumPy-Tickets] [NumPy] #2070: Arithmetic operations with objects that implement __array__ don't make use of their __rmul__ (or __r*__)
NumPy Trac
numpy-tickets@scipy....
Sat Mar 3 03:31:11 CST 2012
#2070: Arithmetic operations with objects that implement __array__ don't make use
of their __rmul__ (or __r*__)
--------------------+-------------------------------------------------------
Reporter: phippo | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: 1.5.1
Keywords: |
--------------------+-------------------------------------------------------
In order to not subclass `ndarray` or other classes that are based on
`ndarray`, like `quantites.Quantity`, I prefere to work with
`__array__`-methods. But there seems to be a bug when it comes to right-
sided arithmetic operatons. I attached a file that demonstrates the
problem.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2070>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list