On 6 Oct 2021, at 18:14, Brandt Bucher email@example.com wrote:
Łukasz Langa wrote:
Joking aside, since we allow any expression after 'except' 'group' then this is indeed ambiguous. In theory!
The ambiguity with function calls, though, is probably a dealbreaker:
except group (E1, E2) as e: … except group(E1, E2) as e: …
Ding ding, we have a winner. This single-handedly kills the "except group" syntax proposal.
See my other message for an alternative (putting “group” after the expression).
It's interesting but at this point not so clearly better than except* to my eyes. Unless everybody else loves it, I don't think we'll go there.