On Sun, Jun 14, 2020 at 8:16 PM Bischoop <bisch...@vimuster.net> wrote: > > > So far I learnt "with" closes the file opened therefore "Generally" no > need to close() file. I'm worry about this "Generally", then close() or > not?
Where did you learn that? Can you cite a reference? If you use a with block, the file is guaranteed to be closed as you exit that block. It's that simple. ChrisA -- https://mail.python.org/mailman/listinfo/python-list