Gregory P. Smith added the comment:

If you want something API compatible that can be used in a Python 2 and 3 
application that wants a getstatusoutput() API I think an appropriate place to 
put it would be to add a commands modules to 
with a consistent getstatusoutput() API.  Either there or something in

The inadvertent API difference between 2.7 commands.getstatusoutput() and 3.3.4 
subprocess.getstatusoutput() is unfortunate but - I agree - too late to change. 
 Fixing the documentation to mention the discrepancy is the least worst option.


Python tracker <>
Python-bugs-list mailing list

Reply via email to