Message74284
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2008年10月03日.23:45:14 |
| SpamBayes Score |
1.9153546e-08 |
| Marked as misclassified |
No |
| Message-id |
<1223077515.41.0.60688229915.issue4036@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
subprocess doesn't support bytes for the "args" argument.
- On Windows, subprocess._execute_child() converts args to a string
if it was a list
- On UNIX, subprocess._execute_child() converts args to a list if
it's a string
If shell=True, _execute_child() adds a prefix to the arguments.
I don't know if subprocess should accept bytes in a command line.
Attached patch fixes POSIX version of subprocess to support bytes.
See also related issue #4035. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年10月03日 23:45:15 | vstinner | set | recipients:
+ vstinner |
| 2008年10月03日 23:45:15 | vstinner | set | messageid: <1223077515.41.0.60688229915.issue4036@psf.upfronthosting.co.za> |
| 2008年10月03日 23:45:14 | vstinner | link | issue4036 messages |
| 2008年10月03日 23:45:14 | vstinner | create |
|