On Thu, 14 Nov 2019 at 06:45, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: > > > On Nov 13, 2019, at 10:26, gabriel.ka...@mail.de wrote: > >> with ( > >> open(fname1) as f1, > >> open(fname2) as f2, > >> open(fname3) as f3, > >> open(fname4) as f4 > >> ): > > Maybe you should be able to do something like > > with: > open(fname1) as f1: > open(fname2) as f2: > open(fname3) as f3: > open(fname4) as f4: > ...
You can :-) with \ open(fname1) as f1, \ open(fname2) as f2, \ open(fname3) as f3, \ open(fname4) as f4: ... Seriously, what's so bad about backslashes? Paul _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/K2KEFSO43LHPRA5O7VTTFREW5TLOCCB6/ Code of Conduct: http://python.org/psf/codeofconduct/