Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Exception notes #288

Open
jbvsmo opened this issue Mar 10, 2023 · 0 comments
Open

Display Exception notes #288

jbvsmo opened this issue Mar 10, 2023 · 0 comments

Comments

@jbvsmo
Copy link

jbvsmo commented Mar 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant