Re: PEP 654 except* formatting
3 Oct
2021
3 Oct
'21
11 a.m.
On 03/10/2021 16:59, Patrick Reader wrote:
On 03/10/2021 16:47, Irit Katriel via Python-Dev wrote:
1. except *E as e: // except *(E1, E2) as e: 2. except* E as e: // except* (E1, E2) as e:
I vote #2, because `except *(e1, e2) as e:` could imply that this is splatting an arbitrary expression there - it looks like it will match any number of dynamically chosen exception types.
(that could be a useful feature actually (so maybe the * syntax should be reserved??), but that's another discussion)
1132
Age (days ago)
1132
Last active (days ago)
0 comments
1 participants
participants (1)
-
Patrick Reader