You are correct that fd.flush() makes a difference.  I thought that flush() 
would only affect the ability to read after the write, but actually the data 
was not sent until the flush() operation.  I'll do some more testing.

Thank you.

--
Tim Bower
Assistant Professor
Kansas State University at Salina
Computer Systems Technology

[email protected]
785-826-2920

----- Original Message -----
From: "Antoine Pitrou" <[email protected]>
To: "stdlib-sig" <[email protected]>
Sent: Sunday, January 31, 2010 5:18:34 PM GMT -06:00 US/Canada Central
Subject: Re: [stdlib-sig] socket.makefile() questions


> fd = s.makefile('w', buffering = 0) -> ValueError exception
> fd = s.makefile('w') -> io.BufferedWriter, which does not send data.
> fd = s.makefile('wb') -> io.TextIOWrapper, which does not send data.

Have you tried fd.flush() after writing your data?



_______________________________________________
stdlib-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/stdlib-sig
_______________________________________________
stdlib-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/stdlib-sig

Reply via email to