Wait for a keypress before continuing?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Aug 17 12:36:45 EDT 2011

Hans Mulder wrote:

> Strictly speaking, os.system is deprecated and you should use
> the equivalent invocation of subprocess.call:

Strictly speaking, os.system is *not* deprecated in either Python 2.x or

Latest stable documentation for Python 2.7 and 3.2:

And docs in development for 3.3 (unstable):

Deprecation means that there are active plans to remove the feature. There
are no such plans to remove os.system. What the docs say is much milder:

"The subprocess module provides more powerful facilities for spawning new
processes and retrieving their results; using that module is preferable to
using this function."

Using subprocess may be recommended, but that is not the same as saying that
os.system is deprecated. os.system will not be going away any time in the
foreseeable future.


More information about the Python-list mailing list