[issue1175] .readline() has bug WRT nonblocking files

Alex Burr report at bugs.python.org
Tue Sep 18 17:40:36 CEST 2007


Alex Burr added the comment:

The exception would count as a warning if it wasn't EGAIN. One expects
to catch EGAIN and try again.

The current situation is unfortunate because it *nearly* works. My
scenario is: I'm driving GDB/MI via popen2.Popen3 ( gdbCommand, False,1).
It works for most GDB commands, but sometimes GDB returns a huge line
and I get EGAIN in the middle. (For my purposes, I've worked round it,
by avoiding the command which generates a long line)

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1175>
__________________________________


More information about the Python-bugs-list mailing list