Author RadicalZephyr
Recipients RadicalZephyr, docs@python
Date 2014-11-13.18:01:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415901686.09.0.50650588621.issue22865@psf.upfronthosting.co.za>
In-reply-to
Content
While using the pty.py module I had cause to want to be able to silently eat characters from the input stream.  I discovered that because of the check for end of file being "if not data" that there was no way to do this.

Since the default function used by spawn and _copy is a thin wrapper on os.read, I figured that it would be useful to interpret None as a sentinel value meaning "this is not EOF, but there's nothing I actually want to copy over."
History
Date User Action Args
2014-11-13 18:01:26RadicalZephyrsetrecipients: + RadicalZephyr, docs@python
2014-11-13 18:01:26RadicalZephyrsetmessageid: <1415901686.09.0.50650588621.issue22865@psf.upfronthosting.co.za>
2014-11-13 18:01:25RadicalZephyrlinkissue22865 messages
2014-11-13 18:01:25RadicalZephyrcreate