[docs] [issue19060] docs: note that subprocess doesn't replace os.exec*
R. David Murray
report at bugs.python.org
Wed Mar 12 15:20:19 CET 2014
R. David Murray added the comment:
Terry: good point. popen did become undeprecated, however, its implementation was replaced by calls to subprocess. The reason it is kept is that it is an easy shorthand for various common operations...that is, it is a convenience function, even though it lives in the os module for historical reasons.
So, the 2.7 list is correct (popen still uses the syscall there), and the python3 list is correct (popen is fine to use in python3). It is perhaps worth mentioning that os.popen is a convenience function in the subprocess docs, but I'm not sure where to put it. (I see that the popen docs also need updating, but that should be a separate issue, if someone wants to create it.)
Anastasia: thanks, that patch looks good to me.
Python tracker <report at bugs.python.org>
More information about the docs