Message110424
| Author |
matthieu.labbe |
| Recipients |
matthieu.labbe, mrwizard82d1, orsenthil, ssbarnea |
| Date |
2010年07月16日.10:01:44 |
| SpamBayes Score |
0.03835321 |
| Marked as misclassified |
No |
| Message-id |
<1279274506.7.0.144944595985.issue5808@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think this is a bug: The doc says "Availability: UNIX." but it is *available* under Windows and gives an unexpected error message.
I see several way to fix this:
1) Fix the doc: "Supported only on UNIX. Behavior on other platforms is undefined."
2) Make subprocess.getstatusoutput (and subprocess.getoutput) unavailable on non-supported platforms. (Same behavior as the 'os' module.)
3) Make these convenience functions multiplatform using subprocess.Popen.
I think the best thing to do is #3. What do you think? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年07月16日 10:01:46 | matthieu.labbe | set | recipients:
+ matthieu.labbe, orsenthil, ssbarnea, mrwizard82d1 |
| 2010年07月16日 10:01:46 | matthieu.labbe | set | messageid: <1279274506.7.0.144944595985.issue5808@psf.upfronthosting.co.za> |
| 2010年07月16日 10:01:44 | matthieu.labbe | link | issue5808 messages |
| 2010年07月16日 10:01:44 | matthieu.labbe | create |
|