Hacker News new | ask | show | jobs
by robertlagrant 973 days ago
I don't know about all of those, but Python's context managers and built in constructs handle most of those, I think?
1 comments

Only in the most basic cases. If your handle has to be passed into another function or outlive the current scope of your function, the guardrails end.