You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
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