Ronald Oussoren <ronaldousso...@mac.com> added the comment: I don't think so. stdio on OSX has a fdiscard function, but that's not exposed to Python.
I tend to explicitly synchronize on prompts when communicating with an interactive program over a pipe. That is, read until you found the prompt, then send a command, then read again until getting to the prompt, ... ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7240> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com