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 Baptiste.Lepilleur
Recipients Baptiste.Lepilleur, docs@python
Date 2013-02-24.11:43:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361706230.84.0.572016082.issue17285@psf.upfronthosting.co.za>
In-reply-to
Content
Documentation states:

>>> help( subprocess.check_output )
check_output(*popenargs, timeout=None, **kwargs)
    Run command with arguments and return its output as a byte string.

But the most common usage is:
>>> subprocess.check_output( 'echo test', shell=True, universal_newlines=True )
'test\n'

Which obviously output a text string, not a byte string.

IMHO, one of the example should also be modified to show the existence of this flag, as it is what user want 90% of the times.
History
Date User Action Args
2013-02-24 11:43:50Baptiste.Lepilleursetrecipients: + Baptiste.Lepilleur, docs@python
2013-02-24 11:43:50Baptiste.Lepilleursetmessageid: <1361706230.84.0.572016082.issue17285@psf.upfronthosting.co.za>
2013-02-24 11:43:50Baptiste.Lepilleurlinkissue17285 messages
2013-02-24 11:43:50Baptiste.Lepilleurcreate