Interpreter

Holds configurations, context and debugging tools for scripts execution.

Declaration

open class Interpreter

Discussion

This is not the same as a Python subinterpreter because this would break compatibility with a lot of native extensions. Instead, PytoRuntime groups threads by interpreter to isolate modules in a single process environment. Standard library modules except sys and a few other ones are still shared.

Members

Default version for command line usage.

Interopability

Returns the current interpreter.

Conforms to

  • Identifiable

  • @unchecked Sendable