A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-October/155576.html below:

[Python-Dev] "Deprecation" of os.system in favor of subprocess?

[Python-Dev] "Deprecation" of os.system in favor of subprocess? [Python-Dev] "Deprecation" of os.system in favor of subprocess?Nick Coghlan ncoghlan at gmail.com
Thu Oct 25 08:00:19 EDT 2018
On Thu, 25 Oct 2018 at 01:34, Calvin Spealman <cspealma at redhat.com> wrote:
> Simply put, there is no valid use case for os.system over subprocess by remaining it must be considered redundant.

They do different things. The warnings against using os.system are
based on "If you don't know whether or not you have the use case that
this exists to handle it's much safer to assume that you don't", not
"This has no valid use cases" (your use case just has to meet the
criteria that makes os.system safe to use - no exposure to untrusted
input.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4