On 9/04/21 2:59 am, anthony.flury via Python-ideas wrote:
I was wondering whether a worthwhile extension might be to allow the `with` statement to have an `except` and `else` clauses

I don't think I would find this very useful. My application-level
exception handling is rarely that close to the file operations,
it's usually at a much higher level.

--
Greg

_______________________________________________
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/OHZFRDHZZRLH25IXNUSQXFIF734I5773/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to