On 19/11/19 3:32 pm, Random832 wrote:
For one thing, it'd have to *truly never* fail.
Even if open() itself truly never failed, there would still be room to get yourself into trouble. E.g.
with (open(get_filename_1()), open(get_filename_2())) as (f1, f2): ...
If get_filename_2() fails, the first file would be left open.