sys.stdin and two CTRL-Ds

John Machin sjmachin at lexicon.net
Sun Jul 2 02:46:11 EDT 2006


On 2/07/2006 3:48 PM, Lawrence D'Oliveiro wrote:
> In article <44A6DD6E.5000502 at lexicon.net>,
>  John Machin <sjmachin at lexicon.net> wrote:
> 
>> -u unbuffers sys.stdout 
>> and sys.stderr (and makes them binary, which wouldn't be a good idea on 
>> a Windows box).
> 
> Why not?

If binary, '\n' would appear as LF alone rather than CR LF.



More information about the Python-list mailing list