3 ms·
Ah. I imagine the problem is that `__del__` could be monkeypatched, so Python doesn't strictly know what needs custom finalization until that moment. But if y
by zahlman 2y ago
Ah.
I imagine the problem is that `__del__` could be monkeypatched, so Python doesn't strictly know what needs custom finalization until that moment.
But if you have a concrete proposal, it's likely worth shopping around at https://discuss.python.org/c/ideas/6 https://discuss.python.org/c/ideas/6 or https://github.com/python/cpython/issues/ https://github.com/python/cpython/issues/ .
- kstrauser 2y agoI might do that. It’s nothing I’ve thought about in depth, just an occasionally recurring idea that bugs me every now and then.