Hi,
The following issue has puzzled me for a while. I want to add a
numpy.ndarray and an instance of my own class. I define this operation
by implementing the methods __add__ and __radd__. My programme
(including output) looks like:
#!/usr/local/bin/python
import numpy
class Cyclehist:
def
Hi Mark
On Mon, Dec 18, 2006 at 08:30:20AM +0100, Mark Hoffmann wrote:
> The following issue has puzzled me for a while. I want to add a numpy.ndarray
> and an instance of my own class. I define this operation by implementing the
> methods __add__ and __radd__. My programme (including output) look
> Hi,
>
> The following issue has puzzled me for a while. I want to add a
> numpy.ndarray and an instance of my own class. I define this operation
> by implementing the methods __add__ and __radd__. My programme
> (including output) looks like:
>
> #!/usr/local/bin/python
>
> import numpy
>
>