New submission from Thayne McCombs: The subprocess documentation for stdout/stderr/stdin states: "Valid values are PIPE, an existing file descriptor (a positive integer), an existing file object, and None. PIPE indicates that a new pipe to the child should be created."
However, file-like objects such as StringIO are not valid if they do not implement fileno(). The documentation should be more explicit that the file object should be backed by an actual file descriptor (and therefore has a fileno() function). ---------- assignee: docs@python components: Documentation messages: 206272 nosy: Thayne.McCombs, docs@python priority: normal severity: normal status: open title: subprocess documentation not explicit about fileno() _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19992> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com