arrays & pickling

Alex Martelli Alex.Martelli at think3.com
Mon Dec 27 03:06:02 EST 1999


Namsagga writes:

> What is the most compact way to save an array to a file?
> 
Perhaps the tofile method of an array object?  I think you
will also need to write the typecode value and array length
(I'm not sure how you recover the length given an array
object -- does the builtin function len work on them?  I am
but an egg...).


Alex





More information about the Python-list mailing list