<div dir="ltr"><div>In the spirit of "There should be one-- and preferably only one --obvious way to do it." this makes perfect sense.</div><div><br></div><div>The distinction between "your own machine and other peoples machines" is not always clear, nor planned for, nor understood by developers to be an important distinction to make up-front. So the encouragement should be clear.</div><div><br></div><div>Simply put, there is no valid use case for os.system over subprocess by remaining it must be considered redundant.<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 24, 2018 at 7:58 AM Steve Dower <<a href="mailto:steve.dower@python.org">steve.dower@python.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 24Oct2018 0435, Antoine Pitrou wrote:<br>
> On Wed, 24 Oct 2018 08:05:21 +0200<br>
> Stephane Wirtel <<a href="mailto:stephane@wirtel.be" target="_blank">stephane@wirtel.be</a>> wrote:<br>
>> 1. Add the 'deprecated' directive in the doc<br>
>> 2. Use subprocess for these references<br>
>><br>
>> What is your opinion?<br>
> <br>
> I don't think it's useful to deprecate something that works fine for<br>
> the intended purpose.<br>
<br>
Agreed.<br>
<br>
There are two different groups of users involved here. People developing <br>
scripts to run on their own machines (super-shell scripts, if you like), <br>
and people developing applications/libraries to run on other machines.<br>
<br>
The latter case should *definitely* be using subprocess, because they <br>
shouldn't be making assumptions about what shell is being used.<br>
<br>
The former case should be able to use os.system if that satisfies their <br>
needs, without seeing warnings that make them think they can't write the <br>
simplest code that works anymore.<br>
<br>
If that means changing *some* of the other references in the docs, then <br>
I'm okay with that. But both uses are valid, so it's really more about <br>
being clear who the function is intended for.<br>
<br>
Cheers,<br>
Steve<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/cspealma%40redhat.com" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/cspealma%40redhat.com</a><br>
</blockquote></div>