On Fri, Feb 26, 2021 at 2:00 AM Guido van Rossum email@example.com wrote:
Then we should get some more opinions on this. I think it's the best idea so far for kindness towards code using `except Exception:`.
I agree that it's the best idea so far. If someone says 'except Exception' they better mean it because we'll believe them, and if someone forgets to handle an ExceptionGroup then they have a bug and that's how it is.
OT: Is ExceptionGroup *really* immutable in the current implementation? As long as the 'errors' field is a list, I think one could mutate the list directly.
It's not, but we were going to make it an immutable tuple.
Which brings me to the question, do you have a branch that matches the PEP yet?
The implementation matches the PEP less and less every day because the PEP is developing faster than the implementation. But these aren't differences that are more than a technicality to fix (rename things, move an error from runtime to the parser, things like that). The except* implementation is probably pretty close to the PEP because it's the most recent bit.