sys.stdin and two CTRL-Ds

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Jul 3 02:45:19 EDT 2006


In article <44a76bb1 at news.eftel.com>,
 John Machin <sjmachin at lexicon.net> wrote:

>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.

Why should that matter? I thought Windows (the NT line) was 
POSIX-compliant.



More information about the Python-list mailing list