On Sun, 31 Jan 2010 18:56:54 -0800, Timothy Bower
fd.flush() seems to be the secret - worked as expected in all tests. If possible, I'd like to suggest that the documentation be updated to explicitly say that a buffered file object is returned unless the buffering parameter is set to 0 (zero). Setting buffering = None (def ault value) still returns a buffered object, which seems a little counter intuitive, but acceptable if the documentation makes it clear.
It is already documented. socket.makefile says the args are interpreted as for the built in function 'open' and provides a link to those docs, which clearly say that the default is that buffering is on. None is often used to mean "default" in Python functions. As for your original question as to whether or not this is the right list, no it isn't :). python-list is the best place to post this kind of question, and then if you find you have a real bug, file a bug report on the tracker. -- R. David Murray www.bitdance.com Business Process Automation - Network/Server Management - Routers/Firewalls