[issue19992] subprocess documentation not explicit about fileno()

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 <report@bugs.python.org> <http://bugs.python.org/issue19992> _______________________________________

Changes by Martin Panter <vadmium+py@gmail.com>: ---------- stage: -> needs patch versions: +Python 2.7, Python 3.5, Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19992> _______________________________________

Cheryl Sabella <cheryl.sabella@gmail.com> added the comment: Assigning to @Mariatta for the sprints. ---------- assignee: docs@python -> Mariatta nosy: +Mariatta, cheryl.sabella type: -> enhancement versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.5, Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue19992> _______________________________________
participants (3)
-
Cheryl Sabella
-
Martin Panter
-
Thayne McCombs