[Numpy-discussion] array.tofile() refuses to write into a StringIO

OC oc-spam66@laposte....
Sun Sep 25 11:23:05 CDT 2011


Hello,

as said in the subject, the following code produces an error. Is it normal ?

**********************************************************
A = r_[1]
file_buffer = StringIO()
A.tofile(file_buffer)

IOError: first argument must be a string or open file
**********************************************************


More information about the NumPy-Discussion mailing list