Message161329
http://docs.python.org/library/subprocess.html#exceptions documentation is wrong at least for the case when shell=True on Linux. An attempt to execute a non-existent file with:
process = subprocess.Popen("sdfsdf", shell=True, stdout=subprocess.PIPE, stderr=errpipe)
out, err = process.communicate()
print out
Results in a message "/bin/sh: sfs: command not found" with no exceptions. Other statements may be invalid too. |
|
Date |
User |
Action |
Args |
2012-05-22 06:09:54 | techtonik | set | recipients:
+ techtonik, docs@python |
2012-05-22 06:09:54 | techtonik | set | messageid: <1337666994.08.0.287605633225.issue14879@psf.upfronthosting.co.za> |
2012-05-22 06:09:53 | techtonik | link | issue14879 messages |
2012-05-22 06:09:53 | techtonik | create | |
|