[Numpy-discussion] repr and object arrays

Charles R Harris charlesr.harris@gmail....
Wed Sep 30 21:45:11 CDT 2009

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 wonder if this should be fixed?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090930/54dade52/attachment.html 

More information about the NumPy-Discussion mailing list