There are two scenarios which require stack tracing by the interpreter:
Upon receiving a callstack request from the kernel, the interpreter must collect the current call stack and send it back to the kernel for inspection.
Whenever a Python function is called, the interpreter must ensure that the call follows the API policy (public vs private), if an API policy is present, by checking the current call stack.
Both of these mechanisms are implemented in the Pyronia userspace library.
There are two scenarios which require stack tracing by the interpreter:
Both of these mechanisms are implemented in the Pyronia userspace library.