[docs] [issue22865] Document how to make pty.spawn not copy data

Martin Panter report at bugs.python.org
Wed Oct 7 08:46:27 CEST 2015


Martin Panter added the comment:

I would avoid suggesting one can return non-byte-strings; treat that as an implementation detail. Maybe something like:

The functions *master_read* and *stdin_read* are passed a file descriptor which they should read from, and should return a byte string. The defaults try to read 1024 bytes each time they are called. Returning an empty string is be interpreted as an EOF condition, and the *_read* function will no longer be called.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22865>
_______________________________________


More information about the docs mailing list