4 ms·
I love how in the very first example, how to open a file in python, the example forgot to close the file! Cherry on top. It's not as if python had a special sy
by user5994461 6y ago
I love how in the very first example, how to open a file in python, the example forgot to close the file!
Cherry on top. It's not as if python had a special syntax to use a resource and close it automatically at the end of the block, precisely to avoid this sort of issues. /s
- reportgunner 6y agoYeah it should be using a context manager.