
Oct. 3, 2021
5:50 p.m.
Łukasz Langa wrote:
My idea is this: try: ... except group E as e: ... except group E1, T2 as e: ... Should be doable given the magical match-case contextual keywords precedent. This looks nice and is explicit, since you will always get an ExceptionGroup instance under `e`.
Heh, we crossed posts with the soft keywords. I like your idea (“except group”) better than mine (“except each”).