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 vstinner
Recipients pitrou, vstinner
Date 2016-03-19.01:31:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458351075.41.0.994766438444.issue26590@psf.upfronthosting.co.za>
In-reply-to
Content
The PEP 442 helped to make object finalization safer, but it's just an API, it's not widely used in the Python core yet. io.FileIO has a nice implementation, but socket.socket and os.scandir don't.

I noticed this while working on the issue #26567 which indirectly resurected a destroyed socket (in test_socket).

As I workaround, I reverted my change on socket destructor, but I'm interested to enhance socket destructor to be able to use the new tracemalloc feature of the warnings module.
History
Date User Action Args
2016-03-19 01:31:15vstinnersetrecipients: + vstinner, pitrou
2016-03-19 01:31:15vstinnersetmessageid: <1458351075.41.0.994766438444.issue26590@psf.upfronthosting.co.za>
2016-03-19 01:31:15vstinnerlinkissue26590 messages
2016-03-19 01:31:14vstinnercreate