Skip to main content

ensure_initialized

Function ensure_initialized 

Source
pub fn ensure_initialized()
Expand description

Idempotent: ensure the embedded Python interpreter is initialised.

auto-initialize already brings it up on the first Python::with_gil call, so this function is mostly a documented entry point and a tracing hook for diagnosing “did Python actually start up” issues. Calling it repeatedly is cheap.