OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


On Wed, Oct 24, 2018 at 09:34:34AM -0400, Calvin Spealman wrote:

> Simply put, there is no valid use case for os.system over subprocess 

That is simply not true. That's your opinion, masquerading as a fact, 
and made in the face of Steve Dower's description of at least one 
appropriate use of os.system.

If you depreciate and then remove os.system, all you will do is force 
people to re-invent it, badly and inefficiently.


> by remaining it must be considered redundant.

And neither is that.

os.system is not redundant, as its purpose is different from that of 
subprocess.



-- 
Steve