Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@dr-carlos

Description

@dr-carlos
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dir
    No fields configured for issues without a type.

    Projects

    Status
    Todo
    Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.