Skip to content

Display Exception notes #288

@jbvsmo

Description

@jbvsmo

Similar to my other issue #287

Python3.11 added the concept of notes on exceptions that are displayed after the exception value, in new lines (one per message).

>>> ex = TypeError(10)
>>> ex.add_note('foo is bar')
>>> raise ex
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 10
foo is bar

Latest console does not show notes yet. Ref PEP 678

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions