Message161329
| Author |
techtonik |
| Recipients |
docs@python, techtonik |
| Date |
2012年05月22日.06:09:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337666994.08.0.287605633225.issue14879@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|