Message182868
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. |
|
Date |
User |
Action |
Args |
2013-02-24 11:43:50 | Baptiste.Lepilleur | set | recipients:
+ Baptiste.Lepilleur, docs@python |
2013-02-24 11:43:50 | Baptiste.Lepilleur | set | messageid: <1361706230.84.0.572016082.issue17285@psf.upfronthosting.co.za> |
2013-02-24 11:43:50 | Baptiste.Lepilleur | link | issue17285 messages |
2013-02-24 11:43:50 | Baptiste.Lepilleur | create | |
|