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

Steven D'Aprano steve at pearwood.info
Wed Oct 24 16:27:06 EDT 2018


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


More information about the Python-Dev mailing list