Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/ .



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: