Hacker News new | ask | show | jobs
by mort96 169 days ago
How do you return a file in the happy path when using a context manager?

If you can't, it's not remotely "basically the same as C++ RAII".