Hacker News new | ask | show | jobs
by ATsch 3149 days ago
In CPython, yes. But this is an implementation detail.
1 comments

I learned this with PyPy (or maybe it was Jython?). My usual bad habit for small scripts to depend on open files to close when they went out of scope would suddenly exhausted all file descriptors. Ouch.