![](https://secure.gravatar.com/avatar/72ee673975357d43d79069ac1cd6abda.jpg?s=120&d=mm&r=g)
19 Nov
2019
19 Nov
'19
9:11 a.m.
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. -- Greg