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

oc-spam66 oc-spam66 at laposte.net
Tue Sep 27 05:14:31 EDT 2011

>  if you want to write to a string, why not use .tostring()?

Because A.tostring() returns the binary data, while I would like the text representation.
More precisely, I would like to use A.tofile(sep="\t").

>  Yes, this is a known shortcoming of .tofile().

Is it worth filing a bug report ?


More information about the NumPy-Discussion mailing list