Skip to content

Update ExceptionGroups to use a tuple of errors where possible #142392

@dr-carlos

Description

@dr-carlos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions