In Python, if you either open a file without calling close(), or close the file but not using try-finally or the \"with\"
Although it is quite safe to use such construct in this particular case, there are some caveats for generalising such practice: