Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 4:38 PM, Darren Dale wrote: > On Sun, Mar 8, 2009 at 6:04 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Sun, Mar 8, 2009 at 3:27 PM, Darren Dale wrote: >> >>> On Sun, Mar 8, 2009 at 5:02 PM, Darren Dale wrote: >>> On Sun, Mar 8, 2009 at 4:5

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Darren Dale
On Sun, Mar 8, 2009 at 6:04 PM, Charles R Harris wrote: > > > On Sun, Mar 8, 2009 at 3:27 PM, Darren Dale wrote: > >> On Sun, Mar 8, 2009 at 5:02 PM, Darren Dale wrote: >> >>> On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris < >>> charlesr.har...@gmail.com> wrote: >>> On Sun, Mar

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 3:27 PM, Darren Dale wrote: > On Sun, Mar 8, 2009 at 5:02 PM, Darren Dale wrote: > >> On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris < >>> charlesr.har...@gmail.com> wr

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 3:02 PM, Darren Dale wrote: > On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Darren Dale
On Sun, Mar 8, 2009 at 5:02 PM, Darren Dale wrote: > On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Darren Dale
On Sun, Mar 8, 2009 at 4:54 PM, Charles R Harris wrote: > > > On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale wrote: >> >>> On Sat, Mar 7, 2009 at 1:23 PM, Darren Dale wrote: >>> On Sun, Feb 22, 20

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 2:48 PM, Charles R Harris wrote: > > > On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale wrote: > >> On Sat, Mar 7, 2009 at 1:23 PM, Darren Dale wrote: >> >>> On Sun, Feb 22, 2009 at 7:01 PM, Darren Dale wrote: >>> On Sun, Feb 22, 2009 at 6:35 PM, Darren Dale wrote: >

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Charles R Harris
On Sun, Mar 8, 2009 at 1:04 PM, Darren Dale wrote: > On Sat, Mar 7, 2009 at 1:23 PM, Darren Dale wrote: > >> On Sun, Feb 22, 2009 at 7:01 PM, Darren Dale wrote: >> >>> On Sun, Feb 22, 2009 at 6:35 PM, Darren Dale wrote: >>> On Sun, Feb 22, 2009 at 6:28 PM, Pierre GM wrote: >

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-08 Thread Darren Dale
On Sat, Mar 7, 2009 at 1:23 PM, Darren Dale wrote: > On Sun, Feb 22, 2009 at 7:01 PM, Darren Dale wrote: > >> On Sun, Feb 22, 2009 at 6:35 PM, Darren Dale wrote: >> >>> On Sun, Feb 22, 2009 at 6:28 PM, Pierre GM wrote: >>> On Feb 22, 2009, at 6:21 PM, Eric Firing wrote: > D

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-03-07 Thread Darren Dale
On Sun, Feb 22, 2009 at 7:01 PM, Darren Dale wrote: > On Sun, Feb 22, 2009 at 6:35 PM, Darren Dale wrote: > >> On Sun, Feb 22, 2009 at 6:28 PM, Pierre GM wrote: >> >>> >>> On Feb 22, 2009, at 6:21 PM, Eric Firing wrote: >>> >>> > Darren Dale wrote: >>> >> Does anyone know why __array_wrap__ is

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-02-22 Thread Darren Dale
On Sun, Feb 22, 2009 at 6:35 PM, Darren Dale wrote: > On Sun, Feb 22, 2009 at 6:28 PM, Pierre GM wrote: > >> >> On Feb 22, 2009, at 6:21 PM, Eric Firing wrote: >> >> > Darren Dale wrote: >> >> Does anyone know why __array_wrap__ is not called for subclasses >> >> during >> >> arithmetic operatio

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-02-22 Thread Darren Dale
On Sun, Feb 22, 2009 at 6:28 PM, Pierre GM wrote: > > On Feb 22, 2009, at 6:21 PM, Eric Firing wrote: > > > Darren Dale wrote: > >> Does anyone know why __array_wrap__ is not called for subclasses > >> during > >> arithmetic operations where an iterable like a list or tuple > >> appears to > >> t

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-02-22 Thread Pierre GM
On Feb 22, 2009, at 6:21 PM, Eric Firing wrote: > Darren Dale wrote: >> Does anyone know why __array_wrap__ is not called for subclasses >> during >> arithmetic operations where an iterable like a list or tuple >> appears to >> the right of the subclass? When I do "mine*[1,2,3]", array_wrap i

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-02-22 Thread Stéfan van der Walt
2009/2/23 Eric Firing : > Darren Dale wrote: >> Does anyone know why __array_wrap__ is not called for subclasses during >> arithmetic operations where an iterable like a list or tuple appears to >> the right of the subclass? When I do "mine*[1,2,3]", array_wrap is not >> called and I get an ndarray

Re: [Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-02-22 Thread Eric Firing
Darren Dale wrote: > Does anyone know why __array_wrap__ is not called for subclasses during > arithmetic operations where an iterable like a list or tuple appears to > the right of the subclass? When I do "mine*[1,2,3]", array_wrap is not > called and I get an ndarray instead of a MyArray. "[1,

[Numpy-discussion] possible bug: __array_wrap__ is not called during arithmetic operations in some cases

2009-02-22 Thread Darren Dale
Does anyone know why __array_wrap__ is not called for subclasses during arithmetic operations where an iterable like a list or tuple appears to the right of the subclass? When I do "mine*[1,2,3]", array_wrap is not called and I get an ndarray instead of a MyArray. "[1,2,3]*mine" is fine, as is "min