ID EN
Traceback

extract_stack

Python 3.11

Extract the raw traceback from the current stack frame. The return value has the same format as for extract_tb(). The optional f and limit arguments have the same meaning as for print_stack().

Syntax

PYTHON
traceback.extract_stack(f=None, limit=None)

See Also

stack frame extract_tb() print_stack()