News for hackers. Stuff that matters.
Re:Gleam, Coming from Erlang by nemetroid on Saturday March 01, 2025 @07:45AM (#43218732)
> See Python files, which are closed when the file handle is collected (ie. when all variables holding it go out of scope)

That's a CPython implementation detail.

https://docs.python.org/3/reference/datamodel.html

> Do not depend on immediate finalization of objects when they become unreachable (so you should always close files explicitly).

There are no comments on this comment yet.