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

What's wrong with explicitly closing it though?


it's surprising, someone reading the code could wonder why the file was closed while a context manager was used. Maybe it is some workaround?

Better avoid surprising things.




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

Search: