This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients ita1024, martin.panter, python-dev, vstinner
Date 2017-01-07.02:30:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483756215.02.0.7886864591.issue29174@psf.upfronthosting.co.za>
In-reply-to
Content
The ResourceWarning was added by Issue 26741.

I agree that there are legitimate reasons why pre-3.6 code may avoid calling Popen.wait() and equivalent. Victor opened Issue 27068 about adding a Popen.detach() method, which such code could use to opt out of the warning.

I don’t think there should be a special exemption for the warning at shutdown time. I think we should either:

1. Accept that you should never destroy a 3.6 Popen object without first “waiting” on its child (or zombie), or:

2. Revert the warning, and in a future release (e.g. 3.7), add it back along with a way to opt out of the warning.
History
Date User Action Args
2017-01-07 02:30:15martin.pantersetrecipients: + martin.panter, vstinner, python-dev, ita1024
2017-01-07 02:30:15martin.pantersetmessageid: <1483756215.02.0.7886864591.issue29174@psf.upfronthosting.co.za>
2017-01-07 02:30:14martin.panterlinkissue29174 messages
2017-01-07 02:30:14martin.pantercreate