Re: [Numpy-discussion] repr and object arrays

2009-09-30 Thread Charles R Harris
On Wed, Sep 30, 2009 at 8:52 PM, Robert Kern wrote: > On Wed, Sep 30, 2009 at 21:45, Charles R Harris > wrote: > > Hi All, > > > > It seems that repr applied do an object array does not provide the info > > needed to recreate it: > > > > In [22]: y = array([Decimal(1)]*2) > > > > In [23]: repr(y

Re: [Numpy-discussion] repr and object arrays

2009-09-30 Thread Robert Kern
On Wed, Sep 30, 2009 at 21:45, Charles R Harris wrote: > Hi All, > > It seems that repr applied do an object array does not provide the info > needed to recreate it: > > In [22]: y = array([Decimal(1)]*2) > > In [23]: repr(y) > Out[23]: 'array([1, 1], dtype=object)' > > And of course, there is goi

[Numpy-discussion] repr and object arrays

2009-09-30 Thread Charles R Harris
Hi All, It seems that repr applied do an object array does not provide the info needed to recreate it: In [22]: y = array([Decimal(1)]*2) In [23]: repr(y) Out[23]: 'array([1, 1], dtype=object)' And of course, there is going to be a problem with arrays of more than one dimension anyway. But I wo