Matthieu Labbé <bugs.python....@mattlabbe.com> added the comment:

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?

----------
nosy: +matthieu.labbe

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5808>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to