close() the file when opening "with"?

Bischoop Bischoop at vimuster.net
Sun Jun 14 06:12:26 EDT 2020


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?


More information about the Python-list mailing list