[Python-Dev] "Deprecation" of os.system in favor of subprocess?
chris.barker at noaa.gov
Wed Oct 24 15:41:10 EDT 2018
On Wed, Oct 24, 2018 at 9:06 AM, Victor Stinner <vstinner at redhat.com> wrote:
> I like os.system() and use it everyday.
Python has been evolved over the years away from a "scripting language",
and becoming more of a "systems language". Which is mostly a good thing,
but no need to gratuitously make quick scripting more difficult.
That being said, if there are examples in the docs that use os.system()
that have a good reason to use subprocess, then by all means, let's update
Also: a point was made there that using os.system is essentially making an
assumption about teh shell in use, and thsu is not very portable accross
systems. MAybe that point could be explicitly added to the docs, rather
"more powerful facilities for spawning new processes and retrieving their
When I read that, I think "system is working fine, I don't need more
powerful facilities for spawning new processes or anything special in
retrieving their results;"
So more info, right there, about WHY you would want to use subprocess
instead would be helpful.
Christopher Barker, Ph.D.
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev