[issue11820] idle3 shell os.system swallows shell command output

kent report at bugs.python.org
Sat Apr 16 09:50:47 CEST 2011


kent <fuzzballz at comcast.net> added the comment:

The getoutput and getstatusoutput provide the expect output which can be captured

>>> x=subprocess.getoutput('ls')
>>> print(x)
hs_err_pid28274.log
LP4E-examples
mydir.pth
mydir.pth~
PP4E-Examples-1.2
ProgMan
Python_dir


Would it be a good thing to have the interpreter capture the sysout of all child processes automatically?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11820>
_______________________________________


More information about the Python-bugs-list mailing list