Documentation
Now that #141736 has been merged, the repr() of ExceptionGroups is slightly more efficient when a tuple is used as the exceptions sequence. Lists are fine, just not as optimal when the sequence of exceptions is already known/constant.
The docs should be updated to use tuples of exception sequences where reasonable to encourage 'best practice'.
Linked PRs
Documentation
Now that #141736 has been merged, the
repr()ofExceptionGroups is slightly more efficient when a tuple is used as the exceptions sequence. Lists are fine, just not as optimal when the sequence of exceptions is already known/constant.The docs should be updated to use tuples of exception sequences where reasonable to encourage 'best practice'.
Linked PRs
ExceptionGroups in docs to use a tuple of errors where possible #142393