Python stdlib module — traceback. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.clear_frames()Neutralclear_frames(tb)
Clear all references to local variables in the frames of a traceback.
.extract_stack()Neutralextract_stack(f, limit)
Extract the raw traceback from the current stack frame.
.extract_tb()Neutralextract_tb(tb, limit)
Return a StackSummary object representing a list of
.format_exception()Neutralformat_exception(exc, value, tb, limit, chain)
Format a stack trace and the exception information.
.format_exception_only()Neutralformat_exception_only(exc, value)
Format the exception part of a traceback.
.format_list()Neutralformat_list(extracted_list)
Format a list of tuples or FrameSummary objects for printing.
.format_stack()Neutralformat_stack(f, limit)
Shorthand for 'format_list(extract_stack(f, limit))'.
.format_tb()Neutralformat_tb(tb, limit)
A shorthand for 'format_list(extract_tb(tb, limit))'.
.print_exc()Neutralprint_exc(limit, file, chain)
Shorthand for 'print_exception(*sys.exc_info(), limit, file)'.
| FQN | Field | |
|---|---|---|
| traceback | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import traceback