Message86242
| Author |
mrwizard82d1 |
| Recipients |
mrwizard82d1 |
| Date |
2009年04月21日.15:49:32 |
| SpamBayes Score |
2.4576357e-08 |
| Marked as misclassified |
No |
| Message-id |
<1240328974.09.0.446818382044.issue5808@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When attempting to use the subprocess.getstatusoutput() function on
Windows, I noticed an unusual error message:
"'{' is not recognized as an internal or external command,
operable program or batch file."
When the output contained this message, the status was always 256.
From the interactive prompt, I performed the following:
Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> cmdline = 'dir'
>>> (status, output) = subprocess.getstatusoutput(cmdline)
>>> status
256
>>> output
"'{' is not recognized as an internal or external command,\noperable
program or
batch file."
>>>
I think this is an error (but it is possible I misunderstand the
documentation for the function :) .) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年04月21日 15:49:34 | mrwizard82d1 | set | recipients:
+ mrwizard82d1 |
| 2009年04月21日 15:49:34 | mrwizard82d1 | set | messageid: <1240328974.09.0.446818382044.issue5808@psf.upfronthosting.co.za> |
| 2009年04月21日 15:49:32 | mrwizard82d1 | link | issue5808 messages |
| 2009年04月21日 15:49:32 | mrwizard82d1 | create |
|