X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Don't deprecate os.system()
  • Loading branch information
vstinner committed Jul 1, 2024
commit 98eab4eb3b4e36b7f4b7a642800b4b5d7d075766
4 changes: 0 additions & 4 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4992,10 +4992,6 @@ written in Python, such as a mail server's external command delivery program.

.. availability:: Unix, Windows, not WASI, not iOS.

.. deprecated:: 3.14
The function is :term:`soft deprecated` and should no longer be used to
write new code. The :mod:`subprocess` module is recommended instead.


.. function:: times()

Expand Down
7 changes: 3 additions & 4 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ Deprecated
as a single positional argument.
(Contributed by Serhiy Storchaka in :gh:`109218`.)

* :term:`Soft deprecate <soft deprecated>` :func:`os.popen`,
:func:`os.spawn* <os.spawnl>` and :func:`os.system` functions. They should no
longer be used to write new code. The :mod:`subprocess` module is
recommended instead.
* :term:`Soft deprecate <soft deprecated>` :func:`os.popen` and
:func:`os.spawn* <os.spawnl>` functions. They should no longer be used to
write new code. The :mod:`subprocess` module is recommended instead.
(Contributed by Victor Stinner in :gh:`120743`.)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
:term:`Soft deprecate <soft deprecated>` :func:`os.popen`, :func:`os.spawn*
<os.spawnl>` and :func:`os.system` functions. They should no longer be used to
write new code. The :mod:`subprocess` module is recommended instead. Patch by
Victor Stinner.
:term:`Soft deprecate <soft deprecated>` :func:`os.popen` and :func:`os.spawn*
<os.spawnl>` functions. They should no longer be used to write new code. The
:mod:`subprocess` module is recommended instead. Patch by Victor Stinner.
X Tutup