[issue6490] os.popen documentation in 2.6 is probably wrong

Chris Rebert report at bugs.python.org
Mon May 30 12:57:29 CEST 2011


Chris Rebert <pybugs at rebertia.com> added the comment:

Per msg129958, attached is my stab at a patch to replace most uses of os.popen() with the subprocess module. The test suite passes on my Mac, but the patch does touch some specific-to-other-platform code, so further testing is obviously needed.
This is my first non-docs patch, please be gentle. :) [Those patches were to subprocess' docs though!]

Stuff still using os.popen() that the patch doesn't fix:
- multiprocessing
- platform.popen() [which is itself deprecated]
- subprocess.check_output()
- Lib/test/test_poll.py
- Lib/test/test_select.py
- Lib/distutils/tests/test_cygwinccompiler.py

Also, I suppose Issue 9382 should be marked as a dupe of this one?

----------
nosy: +cvrebert
Added file: http://bugs.python.org/file22188/mostly_replace_os_popen.patch

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


More information about the Python-bugs-list mailing list