[Numpy-discussion] numpy array serialization with JSON

Robert Kern robert.kern@gmail....
Mon Nov 10 13:14:51 CST 2008


On Mon, Nov 10, 2008 at 12:18, Christopher Barker <Chris.Barker@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