Writing binary to stdout

Chris King squirrel at wpi.edu
Thu Jun 24 02:40:23 CEST 2004


Paul Watson wrote:
> Even when I try to use low-level I/O it does CRLF interpretation.  What am I
> doing wrong?

Are you using Cygwin? It will automatically CRLFify anything it thinks 
should be (I'm not sure what the exact critera are); this has bit me 
before, too. There's an option to disable it in Cygwin setup. This is 
being passed on to the script because the stdout redirections are done 
in Cygwin, not in Python.



More information about the Python-list mailing list