Hacker News new | ask | show | jobs
by zahlman 404 days 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 or https://github.com/python/cpython/issues/ .

1 comments

I might do that. It’s nothing I’ve thought about in depth, just an occasionally recurring idea that bugs me every now and then.