Antoine Pitrou <pit...@free.fr> added the comment: It turns out isatty() returns True for fds created by openpty(), which helps quite a bit: we can silence EIO for ttys while keeping it for non-ttys, where a low-level I/O (hardware) error should be raised properly. Here is a patch for trunk.
---------- keywords: +patch stage: needs patch -> patch review versions: +Python 2.7, Python 3.2 Added file: http://bugs.python.org/file16859/io-openpty.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5380> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com