From my point of view,
with open(...) as x:
should close the file after the with statement completes. However now i see
with closing(open(...)) as x:
in one place, looked around and realized that closing should close the file after completing the with statement.
So what is the difference between closing a file and closing file?
source share