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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19060>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to