Message262014
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. |
|
Date |
User |
Action |
Args |
2016-03-19 01:31:15 | vstinner | set | recipients:
+ vstinner, pitrou |
2016-03-19 01:31:15 | vstinner | set | messageid: <1458351075.41.0.994766438444.issue26590@psf.upfronthosting.co.za> |
2016-03-19 01:31:15 | vstinner | link | issue26590 messages |
2016-03-19 01:31:14 | vstinner | create | |
|