Nope, __exit__() method close file automatically.
I'm talking about when the file variable goes out of scope (if using "with"), its automatically closed [1, 2].
Why you don't debunk or explain what they are for then? I'm trying to "learn" there ))).You're either stupid or a python noob (maybe both). You picked up some smart practices, but you don’t understand what they are for. Go to sleep.
You have the right to do that. But that looks you don't know at all and is just hating (from my point of view).I will return the dislikes for your impudent and unfounded attack