d
> You could try A[...].fill(MyObject(...)). I haven't tried it myself, so
> not
> sure it would work though...
>
> -=- Olivier
>
> 2012/1/6 "David Köpfer"
>
> > Dear numpy community,
> >
> > I'm trying to create an array of type object.
&
Dear numpy community,
I'm trying to create an array of type object.
A = empty(9, dtype=object)
A[ array(0,1,2) ] = MyObject(1)
A[ array(3,4,5) ] = MyObject(2)
A[ array(6,7,8) ] = MyObject(3)
This has worked well until MyObject has gotten an __getitem__ method. Now
python (as it is usually suppo