diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-05-20 10:11:15 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-05-20 10:11:15 (GMT) |
commit | 5a48e21ff163107a6f1788050b2f1ffc8bce2b6d (patch) | |
tree | 47b255b5bd985c762fe5fd2bb9e0beb828fdb986 /Doc/whatsnew | |
parent | a58e2c5c4928ae8031ee60a97f2ab4f863aff8cb (diff) | |
download | cpython-5a48e21ff163107a6f1788050b2f1ffc8bce2b6d.zip cpython-5a48e21ff163107a6f1788050b2f1ffc8bce2b6d.tar.gz cpython-5a48e21ff163107a6f1788050b2f1ffc8bce2b6d.tar.bz2 |
subprocess now emits a ResourceWarning warning
Issue #26741: subprocess.Popen destructor now emits a ResourceWarning warning
if the child process is still running.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.6.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst index 67fd50f..2ec8f00 100644 --- a/Doc/whatsnew/3.6.rst +++ b/Doc/whatsnew/3.6.rst @@ -330,6 +330,16 @@ protocol. (Contributed by Aviv Palivoda in :issue:`26404`.) +subprocess +---------- + +:class:`subprocess.Popen` destructor now emits a :exc:`ResourceWarning` warning +if the child process is still running. Use the context manager protocol (``with +proc: ...``) or call explicitly the :meth:`~subprocess.Popen.wait` method to +read the exit status of the child process (Contributed by Victor Stinner in +:issue:`26741`). + + telnetlib --------- |