Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eindiran
on Jan 5, 2018
|
parent
|
context
|
favorite
| on:
Advanced Python Features
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: