Skip to main content

MAIN_INTERPRETER_ID

Constant MAIN_INTERPRETER_ID 

Source
pub const MAIN_INTERPRETER_ID: i64 = 0;
Expand description

Conventional id of the first process main interpreter when allocation is sequential (CPython parity). Concurrent construction may assign other ids; use PyGlobalState::is_main / crate::Interpreter::is_main to identify a main interpreter, not this constant alone.