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
The exception listing in repr(exc_grp) diverges from exc_grp.exceptions when the initial sequence of exceptions passed to the constructor has been mutated.
Expected behavior: The exceptions listed in repr(exc_grp) match exc_grp.exceptions, which is immutable.
Bug report
Bug description:
The exception listing in
repr(exc_grp)diverges fromexc_grp.exceptionswhen the initial sequence of exceptions passed to the constructor has been mutated.Expected behavior: The exceptions listed in
repr(exc_grp)matchexc_grp.exceptions, which is immutable.Reproducer:
Output:
Expected output:
CPython versions tested on:
3.11, 3.12, 3.13, 3.14
Operating systems tested on:
Linux
Linked PRs
ExceptionGrouprepr changing when original exception sequence is mutated #141736ExceptionGrouprepr changing when original exception sequence is mutated (GH-141736) #142388