On this page
  1. sys.is_stack_trampoline_active
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

sys.is_stack_trampoline_active

Prev: sys.is_remote_debug_enabled | Up: sys | Next: sys.remote_exec
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.is_stack_trampoline_active
Tags: #public #python3 #stdlib #sys


Import

import sys
from sys import is_stack_trampoline_active

Signature & Overview

sys.is_stack_trampoline_active()

Return True if a stack profiler trampoline is active.

Usage

import sys

# Linux + Python 3.12+: returns True when perf stack trampolines are active
assert hasattr(sys, "is_stack_trampoline_active")

Gotchas

REPL Inspect

from sys import is_stack_trampoline_active
help(is_stack_trampoline_active)

Linked from

Related notes