numpy - save many arrays into a file object

Laszlo Nagy gandalf at shopzeus.com
Wed Jun 30 11:48:14 EDT 2010


import numpy
data = numpy.array(...)
numpy.save("test.np",data)

This is very good, but I want to save the data into a file object with a 
write() method. E.g. not a real file. (My purpose right now is to save 
many arrays into one binary file, while recording starting positions of 
the arrays.)

How can I do that?

Thanks

   Laszlo




More information about the Python-list mailing list