Skip to main content

Module interpreter_lifecycle

Module interpreter_lifecycle 

Source

Staticsยง

START ๐Ÿ”’

Functionsยง

ensure_initialized ๐Ÿ”’
initialize ๐Ÿ”’ Neither PyPy nor GraalPy
wait_for_initialization ๐Ÿ”’
If PyO3 is currently running Py_InitializeEx inside the Once guard, block until it completes. Needed because Py_InitializeEx sets the initialized flag in the interpreter to true before it finishes all its steps (in particular, before it imports site.py).
with_embedded_python_interpreterโš Neither PyPy nor GraalPy
Executes the provided closure with an embedded Python interpreter.
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here