Skip to content

idle doesn't display nested tracebacks for ExceptionGroups #111414

Open
@graingert

Description

@graingert

Bug report

Bug description:

Idle prints:

Python 3.13.0a1+ (main, Oct 20 2023, 08:50:56) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license()" for more information.
raise ExceptionGroup("bad", [ValueError()])
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    raise ExceptionGroup("bad", [ValueError()])
ExceptionGroup: bad (1 sub-exception)

the repl displays tracebacks correctly:

Python 3.13.0a1+ (main, Oct 20 2023, 08:50:56) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> raise ExceptionGroup("bad", [ValueError()])
  + Exception Group Traceback (most recent call last):
  |   File "<stdin>", line 1, in <module>
  |     raise ExceptionGroup("bad", [ValueError()])
  | ExceptionGroup: bad (1 sub-exception)
  +-+---------------- 1 ----------------
    | ValueError
    +------------------------------------ 

CPython versions tested on:

3.12, 3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixestopic-IDLEtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions