[docs] [issue17860] subprocess docs lack info how to use output result

Ronald Oussoren report at bugs.python.org
Wed Jun 12 16:57:31 CEST 2013


Ronald Oussoren added the comment:

The attached patch explicitly mentions that stdin/stdout/stderr are opened as binary streams when universal_newlines is False. 

I'm not convinced that adding this text will solve the confusion, subprocess has fairly complex documentation due to the rich API and it is easy to mis information when you don't read carefully. That said, the documentation for check_output (which is likely the most common way to run a command and fetch its output) is already clear about the types of the returned data, both in prose and example code.

----------
nosy: +ronaldoussoren
Added file: http://bugs.python.org/file30562/issue17860.txt

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


More information about the docs mailing list