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

OC oc-spam66 at laposte.net
Sun Sep 25 12:23:05 EDT 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