This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Thayne.McCombs
Recipients Thayne.McCombs, docs@python
Date 2013-12-16.01:52:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387158760.79.0.499761911724.issue19992@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2013-12-16 01:52:40Thayne.McCombssetrecipients: + Thayne.McCombs, docs@python
2013-12-16 01:52:40Thayne.McCombssetmessageid: <1387158760.79.0.499761911724.issue19992@psf.upfronthosting.co.za>
2013-12-16 01:52:40Thayne.McCombslinkissue19992 messages
2013-12-16 01:52:40Thayne.McCombscreate