[issue10481] subprocess PIPEs are byte streams
New submission from Glenn Linderman
Glenn Linderman
Sam Kimbrel added the comment:
I've created a patch that updates the docs to reflect the behavior of communicate() and check_output(), which is that both the "input" argument and stdin/stdout/stderr PIPEs will convert to and from strings when self.univeral_newlines is True and must be bytes otherwise.
----------
keywords: +patch
nosy: +sam.kimbrel
Added file: http://bugs.python.org/file34834/10481-subprocess-docs.diff
_______________________________________
Python tracker
Changes by A.M. Kuchling
Roundup Robot added the comment:
New changeset 267fff541bda by Andrew Kuchling in branch 'default':
#10481: describe universal_newlines' effect on communicate()/check_output() output (alternately bytes or strings)
http://hg.python.org/cpython/rev/267fff541bda
----------
nosy: +python-dev
_______________________________________
Python tracker
A.M. Kuchling added the comment:
Thanks for your patch!
----------
nosy: +akuchling
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
_______________________________________
Python tracker
participants (4)
-
A.M. Kuchling
-
Glenn Linderman
-
Roundup Robot
-
Sam Kimbrel