[Numpy-discussion] Reading and writing binary data to/from file objects
Christoph Bersch
usenet at bersch.net
Wed May 26 08:24:47 EDT 2010
Pauli Virtanen schrieb:
> ke, 2010-05-26 kello 14:07 +0200, Christoph Bersch kirjoitti:
>> f = open(fname2, 'w')
> [clip]
>> Am I doing something substantially wrong or is this a bug?
>
> You are opening files in text mode. Use mode 'wb' instead.
That was it, thank you!
Linux does not seem to care about binary or text mode. As I develop
under Linux I was a bit puzzled by the different behaviour on Windows.
Christoph
More information about the NumPy-Discussion
mailing list