[issue29989] subprocess.Popen does not handle file-like objects without file descriptors
Raphael Gaschignard
report at bugs.python.org
Sun Apr 9 21:31:30 EDT 2017
Raphael Gaschignard added the comment:
I'm sorry for the confusion here, it turns out I was misinterpreting the results of my program and my workaround was not working. Like others have said, the subprocess code seems to rely on the existence of file descriptors
I would be pretty partial to the idea of having the subprocess's internal code catch OSError and raise a clearer error message like "subprocess can only operate on files with file descriptor support".
Having "complete" file object support would seem like a major win, but looking at the internals/OS support it seems like a hard thing to set up.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29989>
_______________________________________
More information about the Python-bugs-list
mailing list