[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

Gregory P. Smith report at bugs.python.org
Wed Aug 9 01:05:04 EDT 2017


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 https://pypi.python.org/pypi/past/ with a consistent getstatusoutput() API.  Either there or something in https://pypi.python.org/pypi/six/.

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 <report at bugs.python.org>
<http://bugs.python.org/issue22635>
_______________________________________


More information about the Python-bugs-list mailing list