15 Jun
2021
15 Jun
'21
8:42 p.m.
On Wed, Jun 16, 2021 at 10:56:12AM +1000, Chris Angelico wrote:
Dangerous idea - my first interpretation of that syntax was that it would be equivalent to "except ValueError: pass", which would be very confusing (it's subtly different in your example with return, and drastically different in other cases).
Aside from the difference in chained exceptions (the exception cause or context, I forget which is which, will be different) surely it is the same as `except ValueError: pass`? TBH I thought that difference was so minor that it wasn't even worth mentioning. -- Steve