<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 24, 2018 at 9:06 AM, Victor Stinner <span dir="ltr"><<a href="mailto:vstinner@redhat.com" target="_blank">vstinner@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I like os.system() and use it everyday. </blockquote><div><br></div><div>me too.</div><div><br></div><div>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.</div><div><br></div><div>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 those.</div><div><br></div><div>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 than just:</div><div><br></div><div> "more powerful facilities for spawning new processes and retrieving their results;"</div><div><br></div><div>When I read that, I think "system is working fine, I don't need <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> more powerful facilities for spawning new processes or anything special in retrieving their results;"</span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">So more info, right there, about WHY you would want to use subprocess instead would be helpful.</span></div><div><br></div><div><br></div><div>-CHB</div><div><br></div><div><br></div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>