|↑| ❪֎’❫ Python Standard Library ○ | traceback ⚬⃕ᵖʸ ⦍֎⦎⦍֎’⦎
⮞ 🟣 ֎
⮞ ➔ 𓂃𓂃𓂃
⮞ ⛛ 𓂃𓂃𓂃
Entries
traceback ⚬⃕ᵖʸ|Documentation|1st|20251021185259-00-⌔
traceback — Print or retrieve a stack traceback — Python 3 documentation
traceback— Print or retrieve a stack tracebackSource code: Lib/traceback.py
This module provides a standard interface to extract, format and print stack traces of Python programs. It is more flexible than the interpreter’s default traceback display, and therefore makes it possible to configure certain aspects of the output. Finally, it contains a utility for capturing enough information about an exception to print it later, without the need to save a reference to the actual exception. Since exceptions can be the roots of large objects graph, this utility can significantly improve memory management.
The module uses traceback objects — these are objects of type
types.TracebackType, which are assigned to the__traceback__field ofBaseExceptioninstances.See also:
Module
faulthandlerUsed to dump Python tracebacks explicitly, on a fault, after a timeout, or on a user signal.
Module
pdbInteractive source code debugger for Python programs.
The module’s API can be divided into two parts:
- Module-level functions offering basic functionality, which are useful for interactive inspection of exceptions and tracebacks.
TracebackExceptionclass and its helper classesStackSummaryandFrameSummary. These offer both more flexibility in the output generated and the ability to store the information necessary for later formatting without holding references to actual exception and traceback objects.Added in version 3.13: Output is colorized by default and can be controlled using environment variables.
Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original
Fields
admin::|[[|⚐]],[[|⚐]],[[|⚐]],[[|⚐]],[[|⚐]],
withheld::|————
relation::|————
parent_::|————
parent::|↑| ❪֎’❫ Python Standard Library ○ | traceback ⚬⃕ᵖʸ ⦍֎⦎⦍֎’⦎