
16 Nov
2019
16 Nov
'19
3:51 p.m.
On 17/11/19 10:34 am, Andrew Barnert wrote:
On Nov 16, 2019, at 13:13, Greg Ewing greg.ewing@canterbury.ac.nz wrote:
It might be better to keep it as purely a context manager, and not load it down with any other baggage.
Doesn’t `closing` already take care of that (and other things besides files, too)?
No, because a tuple of closing(open(...)) calls still opens all the files before the with-statement starts.
--
Greg