Author martin.panter
Recipients RadicalZephyr, docs@python, martin.panter, twouters
Date 2015-10-07.01:51:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
If you return null bytes, they will be written to the parent process’s stdout file descriptor, rather than being ignored. I do not think it is possible to ignore output with the spawn() API, unless perhaps you previously set up stdout write to /dev/null or similar.

Do you have a reference for your fact about terminals ignoring null input bytes? I’m skeptical because a basic serial terminal can send arbitrary data including nulls, but I am not so familiar with pseudo-terminals.

However the bit about interpreting an empty string could be useful. I would drop the “or any falsey value”; is that a typo? I suspect that the functions have to return byte strings (not text). It would be nice to say what the consequences of the EOF condition is, e.g. I can see for the child’s output it would stop copying, but not actually close the parent’s stdout to signal EOF. What about in the other direction? Can you signal multiple EOFs with data in between?
Date User Action Args
2015-10-07 01:51:04martin.pantersetrecipients: + martin.panter, twouters, docs@python, RadicalZephyr
2015-10-07 01:51:04martin.pantersetmessageid: <>
2015-10-07 01:51:04martin.panterlinkissue22865 messages
2015-10-07 01:51:02martin.pantercreate