[Numpy-discussion] numpy array serialization with JSON

Robert Kern robert.kern at gmail.com
Mon Nov 10 14:14:51 EST 2008


On Mon, Nov 10, 2008 at 12:18, Christopher Barker <Chris.Barker at noaa.gov> wrote:
> Matthieu Brucher wrote:
>> Last time I checked, repr() does the same thing as str(): the middle
>> of the array may not be displayed...
>
> right. darn -- is that controllable?

set_printoptions()

> It also breaks the axum:
>
> eval(repr(x)) == x
>
> but I guess with big arrays, this in one of those times that:
>
> "Practicality beats Purity"

Yup.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list