Geoff Shannon added the comment:

Okay, I just found another way to achieve the same effect of letting the _read 
function ignore data but not inadvertantly close the stream.  It relies on the 
fact that terminals will ignore null bytes fed to them.

Now there are no code changes required, just an addition to the documentation.

----------
components:  -Library (Lib)
title: Allow pty.spawn to ignore data to copy -> Document how to make pty.spawn 
not copy data
Added file: http://bugs.python.org/file39313/pty.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22865>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to