Will automatic close the file descriptor (handle) once the python garbage collector finds it.
Do not ever expect that garbage collection will "just" fix your problems. What if the behaviour of the garbage collector is changed in the future? What about when you try to learn a language without garbage collection?
Do not ever expect that garbage collection will "just" fix your problems. What if the behaviour of the garbage collector is changed in the future? What about when you try to learn a language without garbage collection?