writing to a binary file without intervening spaces

Larry larry.cebuala at gmail.com
Tue Mar 18 07:00:26 CET 2008

On Mar 18, 1:32 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> Larry <larry.cebu... at gmail.com> writes:
> > It seems to me that Python always add intervening spaces between data
> > elements when writing to a file
> It's just the print statement that does that.

I doubt that. I tried one small file, I opened it using the
application I mentioned, the display said like data, NaN, data, NaN...

I even went further to opening the file using notepad, and did a
search-and-replace for space characters. The result was what I
desired: data,data,data...

More information about the Python-list mailing list