Re: sys.stdin and two CTRL-Ds

2006-07-03 Thread Lawrence D'Oliveiro
In article [EMAIL PROTECTED], John Machin [EMAIL PROTECTED] wrote: On 2/07/2006 3:48 PM, Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], John Machin [EMAIL PROTECTED] wrote: -u unbuffers sys.stdout and sys.stderr (and makes them binary, which wouldn't be a good idea on a

Re: sys.stdin and two CTRL-Ds

2006-07-03 Thread John Machin
On 3/07/2006 4:45 PM, Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], John Machin [EMAIL PROTECTED] wrote: On 2/07/2006 3:48 PM, Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], John Machin [EMAIL PROTECTED] wrote: -u unbuffers sys.stdout and sys.stderr (and makes

Re: sys.stdin and two CTRL-Ds

2006-07-03 Thread [EMAIL PROTECTED]
I may be wrong, but I've never heard of Windows being fully posix compliant. I guarentee you that they dont support pthreads. It is possible that by posix compliant the marketting execs mean supports all posix commands which dont interfere with our way of doing things Windows version of python

Re: sys.stdin and two CTRL-Ds

2006-07-03 Thread Lawrence D'Oliveiro
In article [EMAIL PROTECTED], John Machin [EMAIL PROTECTED] wrote: On 3/07/2006 4:45 PM, Lawrence D'Oliveiro wrote: I thought Windows (the NT line) was POSIX-compliant. What on earth gave you that idea? http://fuckinggoogleit.com/?query=windows+nt+posix --

Re: sys.stdin and two CTRL-Ds

2006-07-03 Thread John Machin
On 3/07/2006 9:14 PM, Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], John Machin [EMAIL PROTECTED] wrote: On 3/07/2006 4:45 PM, Lawrence D'Oliveiro wrote: I thought Windows (the NT line) was POSIX-compliant. What on earth gave you that idea?

Re: sys.stdin and two CTRL-Ds

2006-07-02 Thread John Machin
On 2/07/2006 3:48 PM, Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], John Machin [EMAIL PROTECTED] 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

sys.stdin and two CTRL-Ds

2006-07-01 Thread Christoph Haas
Hi... I encountered a problem that - according to my google search - other people have found, too. Example code: import sys for line in sys.stdin: print line Running this code in Python 2.3 or 2.4 has the problem that I need to send two EOFs (Ctrl-D) to break out of that loop. Use case is a

Re: sys.stdin and two CTRL-Ds

2006-07-01 Thread John Machin
On 2/07/2006 5:02 AM, Christoph Haas wrote: Hi... I encountered a problem that - according to my google search - other people have found, too. Example code: import sys for line in sys.stdin: print line Running this code in Python 2.3 or 2.4 has the problem that I need to send two

Re: sys.stdin and two CTRL-Ds

2006-07-01 Thread Lawrence D'Oliveiro
In article [EMAIL PROTECTED], John Machin [EMAIL PROTECTED] 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? -- http://mail.python.org/mailman/listinfo/python-list