Re: [Numpy-discussion] strange behavior of += with object array

2013-11-01 Thread Robert Kern
On Fri, Nov 1, 2013 at 10:34 AM, Neal Becker wrote: > > Robert Kern wrote: > > > On Thu, Oct 31, 2013 at 11:22 PM, Neal Becker wrote: > >> > >> import numpy as np > >> #from accumulator import stat2nd_double > >> > >> ## Just to make this really clear, I'm making a dummy > >> ## class here that o

Re: [Numpy-discussion] strange behavior of += with object array

2013-11-01 Thread Neal Becker
Robert Kern wrote: > On Thu, Oct 31, 2013 at 11:22 PM, Neal Becker wrote: >> >> import numpy as np >> #from accumulator import stat2nd_double >> >> ## Just to make this really clear, I'm making a dummy >> ## class here that overloads += >> class stat2nd_double (object): >> def __iadd__ (self,

Re: [Numpy-discussion] strange behavior of += with object array

2013-11-01 Thread Neal Becker
Robert Kern wrote: > On Thu, Oct 31, 2013 at 11:22 PM, Neal Becker wrote: >> >> import numpy as np >> #from accumulator import stat2nd_double >> >> ## Just to make this really clear, I'm making a dummy >> ## class here that overloads += >> class stat2nd_double (object): >> def __iadd__ (self,

Re: [Numpy-discussion] strange behavior of += with object array

2013-11-01 Thread Robert Kern
On Thu, Oct 31, 2013 at 11:22 PM, Neal Becker wrote: > > import numpy as np > #from accumulator import stat2nd_double > > ## Just to make this really clear, I'm making a dummy > ## class here that overloads += > class stat2nd_double (object): > def __iadd__ (self, x): > return self > >

[Numpy-discussion] strange behavior of += with object array

2013-10-31 Thread Neal Becker
import numpy as np #from accumulator import stat2nd_double ## Just to make this really clear, I'm making a dummy ## class here that overloads += class stat2nd_double (object): def __iadd__ (self, x):