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

Home-brewed context managers are new to me: I had only encountered using them in the standard "with open(...) as f:" case. Can someone who has used them before point out a use case for writing your own?


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: