Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pep-0654.rst
Original file line number Diff line number Diff line change
Expand Up @@ -414,14 +414,14 @@ We can then process the full tracebacks of the leaf exceptions:
... eg = e
...
>>> for (i, (exc, tbs)) in enumerate(leaf_generator(eg)):
... print(f"\n>>> Exception #{i+1}:")
... print(f"\n=== Exception #{i+1}:")
... traceback.print_exception(exc)
... print(f"The complete traceback for Exception #{i+1}:")
... for tb in tbs:
... traceback.print_tb(tb)
...

>>> Exception #1:
=== Exception #1:
Traceback (most recent call last):
File "<stdin>", line 3, in g
ValueError: 1
Expand All @@ -430,7 +430,7 @@ We can then process the full tracebacks of the leaf exceptions:
File "<stdin>", line 2, in f
File "<stdin>", line 3, in g

>>> Exception #2:
=== Exception #2:
Traceback (most recent call last):
File "<stdin>", line 3, in g
ValueError: 2
Expand Down