[docs] [issue19992] subprocess documentation not explicit about fileno()

Thayne McCombs report at bugs.python.org
Mon Dec 16 02:52:40 CET 2013


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 at python
components: Documentation
messages: 206272
nosy: Thayne.McCombs, docs at python
priority: normal
severity: normal
status: open
title: subprocess documentation not explicit about fileno()

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19992>
_______________________________________


More information about the docs mailing list