Expand description
Implement virtual machine to run instructions.
See also: https://github.com/ProgVal/pythonvm-rust/blob/master/src/processor/mod.rs
Re-exports§
pub use runtime::InterpFeatureFlags;pub use runtime::InterpreterConfig;pub use runtime::InterpreterGil;pub use runtime::InterpreterInfo;pub use runtime::InterpreterWhence;pub use runtime::MAIN_INTERPRETER_ID;
Modules§
- crossinterp
- Cross-interpreter object sharing and exception snapshots (XI data).
- runtime
- Process-global runtime support for multiple interpreters (PEP 734 preparation).
- thread
Structs§
- Context
- Interpreter
- One isolated Python interpreter in the process (≈ CPython
PyInterpreterState+ main tstate). - Interpreter
Builder - Configuration builder for constructing an Interpreter.
- Paths
- Path configuration computed at runtime (like PyConfig path outputs)
- PyConfig
- Combined configuration: user settings + computed paths CPython directly exposes every fields under both of them. We separate them to maintain better ownership discipline.
- PyGlobal
State - Per-interpreter shared state (≈ CPython
PyInterpreterState). - Settings
- User-configurable settings for the python vm.
- Virtual
Machine - Per-thread execution context for a single interpreter (≈ CPython
PyThreadState).
Enums§
Constants§
Functions§
- resolve_
frozen_ alias - Resolve frozen module alias to its original name. Returns the original module name if an alias exists, otherwise returns the input name.