Alex Burr added the comment: I don't need to change my code as I have now worked round the problem, but for an example of why someone might want nonblocking mode:
It was not actually in order to do any more work, but because I was managing both input and output to gdb in one thread (for simplicity). I therefore needed to collect everything gdb had printed out, but not try to read any more and cause a block because then I could not give GDB its next command, and gdb would not give me any more until I did. I think I did try select, but if I recall correctly, that doesn't work well with .readline() either. I can't remember why, though. __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1175> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com