[stdlib-sig] socket.makefile() questions

Antoine Pitrou solipsis at pitrou.net
Mon Feb 1 00:18:34 CET 2010


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





More information about the stdlib-sig mailing list