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

Peter Wang pwang at anaconda.com
Wed Oct 24 17:39:23 EDT 2018

On Wed, Oct 24, 2018 at 3:31 PM Steven D'Aprano <steve at pearwood.info> wrote:

> 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
> If you depreciate and then remove os.system, all you will do is force
> people to re-invent it, badly and inefficiently.

Indeed.  Usability counts, as does not arbitrarily breaking vast amounts of
existing code that Just Works.

Every code-breaking deprecation is an invitation for unseen thousands or
millions to ponder, "Hm, this script doesn't work anymore. Maybe now is the
time to look at Node or Rust."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20181024/cdce0159/attachment.html>

More information about the Python-Dev mailing list