Message145669
| Author |
techtonik |
| Recipients |
techtonik |
| Date |
2011年10月17日.11:41:10 |
| SpamBayes Score |
5.209528e-07 |
| Marked as misclassified |
No |
| Message-id |
<1318851671.68.0.276363356463.issue13197@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
subprocess.Popen(args, shell=shell) is implicitly inconsistent on Unix:
1. when shell=False, the args should be a list or you'll lose program options
2. when shell=True, the args should be a string or your program options will be passed to shell itself
I propose to make consistent behaviour - require args to be a list, and pass shell options in a separate shell_args keyword argument. If it not for python4, then perhaps it can be implemented in PopenShell() and PopenSystem() functions.
This will also require unification of behaviour across platforms. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年10月17日 11:41:11 | techtonik | set | recipients:
+ techtonik |
| 2011年10月17日 11:41:11 | techtonik | set | messageid: <1318851671.68.0.276363356463.issue13197@psf.upfronthosting.co.za> |
| 2011年10月17日 11:41:11 | techtonik | link | issue13197 messages |
| 2011年10月17日 11:41:10 | techtonik | create |
|