R. David Murray <rdmur...@bitdance.com> added the comment:

Ah, I did not realize that getstatusoutput was implemented using os.popen.  I 
thought it already used Popen.  Now, in python3, os.popen is in turn 
implemented using subprocess.Popen, so removing that level of indirection seems 
sensible.

The question that remains is, does removing the {} change the output obtained 
from a command sequence in any way?

Note that for backward compatibility you will need to re-munge the status code 
into C format.  Which makes me wonder if getoutput/getstatusoutput should just 
be documentationally deprecated instead.  (I never use them myself, FWIW)

----------

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

Reply via email to