This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2011-03-03.11:29:08
SpamBayes Score 3.604861e-07
Marked as misclassified No
Message-id <1299151749.56.0.94984256295.issue11384@psf.upfronthosting.co.za>
In-reply-to
Content
os.popen() was deprecated in Python 2.6 but it does still exist in Python 3.3. The function is no more documented: there is an entry in os documentation, but the entry is not in the index, and it has a reference to the "file object creation" section which doesn't have an paragraph about os.popen().

I prefer subprocess.Popen() over os.popen() because subprocess has much more options to control the child process creation (eg. change the current directory), it closes all files by default (which is more secure), it restores the signal handlers, etc.

I don't know if we can directly remove os.popen() from Python 3.3, because it is no more marked as deprecated in Python 3!
History
Date User Action Args
2011-03-03 11:29:09vstinnersetrecipients: + vstinner
2011-03-03 11:29:09vstinnersetmessageid: <1299151749.56.0.94984256295.issue11384@psf.upfronthosting.co.za>
2011-03-03 11:29:08vstinnerlinkissue11384 messages
2011-03-03 11:29:08vstinnercreate