STINNER Victor victor.stin...@haypocalc.com added the comment:
Its documentation in both 2.6 and 2.7 notes:
Deprecated since version 2.6: This function is obsolete.
Use the subprocess module.
The deprecation should be removed from Python 2.7: os.popen() will not be
removed from Python 2
Éric Araujo mer...@netwok.org added the comment:
I suggest we move the discussion to #6490.
--
nosy: +eric.araujo
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - os.popen documentation in 2.6 is probably wrong
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9382
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
The entire os.popen*() family is supposed be gone in Python 3.x
os.popen2(), os.popen3() and os.popen4() were removed in Python 3.0, but
os.popen() was kept. Guido wants to keep it because it has a nicer API than
Eli Bendersky eli...@gmail.com added the comment:
os.popen() is certainly deprecated. Its documentation in both 2.6 and 2.7 notes:
Deprecated since version 2.6: This function is obsolete. Use the subprocess
module.
Indeed, the Python 3.x library/os.rst doc mentions it several times, but the
R. David Murray rdmur...@bitdance.com added the comment:
(D) in python 3, os.popen has been reimplemented using subprocess.Popen.
So the other mentions of os.popen should probably be replaced with mentions of
subprocess.Popen.
Your (C) is close...the continued existence of os.popen in Python3
New submission from Chris Rebert pyb...@rebertia.com:
http://docs.python.org/py3k/library/os.html currently mentions os.popen() in
several places. The docs for os.popen() itself say:
'These functions are described in section File Object Creation'
However, unlike the 2.x version of that