pub fn run(&mut self) -> PyResult<PyObject> {
        // clone() to avoid issues mixing mutable and immutable borrows of self.
        let run = self.config.run.clone();

        let py = self.acquire_gil();

        match run {
            PythonRunMode::None => Ok(py.None()),
            PythonRunMode::Repl => self.run_repl(),
            PythonRunMode::Module { module } => self.run_module_as_main(&module),
            PythonRunMode::Eval { code } => self.run_code(&code),
        }
    }
/// Runs the interpreter with the default code execution settings.
///
/// The crate was built with settings that configure what should be
/// executed by default. Those settings will be loaded and executed.
Runs the interpreter with the default code execution settings.
The crate was built with settings that configure what should be
executed by default. Those settings will be loaded and executed.
Runs the interpreter with the default code execution settings . The crate was built with settings that configure what should be executed by default . Those settings will be loaded and executed .
pub fn run(&mut self) -> PyResult<PyObject> {
        // clone() to avoid issues mixing mutable and immutable borrows of self.
        let run = self.config.run.clone();
        let py = self.acquire_gil();
        match run {
            PythonRunMode::None => Ok(py.None()),
            PythonRunMode::Repl => self.run_repl(),
            PythonRunMode::Module { module } => self.run_module_as_main(&module),
            PythonRunMode::Eval { code } => self.run_code(&code),
        }
    }
pub fn run ( & mut self ) -> PyResult < PyObject > { // clone() to avoid issues mixing mutable and immutable borrows of self. let run = self . config . run . clone ( ) ; let py = self . acquire_gil ( ) ; match run { PythonRunMode :: None => Ok ( py . None ( ) ) , PythonRunMode :: Repl => self . run_repl ( ) , PythonRunMode :: Module { module } => self . run_module_as_main ( & module ) , PythonRunMode :: Eval { code } => self . run_code ( & code ) , } }
Runs the interpreter with the default code execution settings.
Runs the interpreter with the default code execution settings .
&mut self