[docs] [issue10481] subprocess PIPEs are byte streams
report at bugs.python.org
Sun Nov 21 06:57:04 CET 2010
New submission from Glenn Linderman <v+python at g.nevcal.com>:
While http://bugs.python.org/issue2683 did clarify the fact that the .communicate API takes a byte stream as input, it is easy to miss the implication. Because Python programs start up with stdin as a text stream, it might be good to point out that some action may need to be taken to be sure that the receiving program expects a byte stream, or that the byte stream supplied should be in an encoding that the receiving program is expecting and can decode appropriately.
No mention is presently made in the documentation for .communicate that its output is also a byte stream, and if text will correspond to whatever encoding is used by the sending program.
assignee: docs at python
nosy: docs at python, v+python
title: subprocess PIPEs are byte streams
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the docs