On this page
sys.call_tracing
Prev: sys.breakpointhook | Up: sys | Next: sys.deactivate_stack_trampoline
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.call_tracing
Tags: #public #python3 #stdlib #sys
Import
import sys
from sys import call_tracing
Signature & Overview
sys.call_tracing(func, args, /)
Call func(*args), while tracing is enabled.
Usage
import sys
result = sys.call_tracing(sum, ([1, 2, 3],))
assert result == 6
Gotchas
- Debugger helper: Lets a trace function (like
pdb) invoke a Python callable with tracing still active.
REPL Inspect
from sys import call_tracing
help(call_tracing)
Linked from
Related notes
- tuts/python3/stdlib_module/sys/activate_stack_trampoline Linked here; links to this page; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/addaudithook Linked here; links to this page; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/audit Linked here; links to this page; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/breakpointhook Linked here; links to this page; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/deactivate_stack_trampoline Linked here; links to this page; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sys/displayhook shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/exc_info shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/excepthook shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/exception shared tags: #stdlib, #sys