On 17/11/19 10:34 am, Andrew Barnert wrote:
On Nov 16, 2019, at 13:13, Greg Ewing email@example.com 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.