Python traceback explainer
Paste a CPython traceback: every frame, the markers, the exception against the built-in hierarchy, chains, exception groups and notes, where to look first, and a redacted copy to share.
Operations & FieldcraftKept in this browser · My desk
Read in your browser and never sent anywhere. A traceback can hold user names, host names and tokens, so this page never puts it in a link as pasted: Share results carries the redacted copy only.
The traceback is read entirely in your browser, line by line, against the format CPython 3.11 to 3.15 print: the frames, the ^ and ~ markers of PEP 657, the exception line, notes, SyntaxError locations, the two chaining banners and exception groups. Nothing is run. Each exception is looked up in a table of the built-in classes and the standard-library classes network scripts meet, whose class chains were printed by CPython 3.11.17, 3.12.3, 3.13.16 and 3.14.2 themselves. Behaviour is pinned by 111 golden vectors, whose expected structure was written from the exception objects, not from the parser.
- Python documentation: tracebackThe layout of frames, the exception line, notes, chains and groups, and the group limits (read 2026-10-27, with the 3.11 to 3.14 editions)
- Python documentation: Built-in ExceptionsThe class hierarchy and what each exception means
- PEP 657Fine-grained error locations: the ^ and ~ markers
- PEP 654 and PEP 678Exception groups, and notes added to exceptions
- PEP 3134Exception chaining: __cause__, __context__ and the two banners
- Python Developer's Guide: Status of Python versions3.11 to 3.15 supported; 3.10 end of life on 2026-10-01