PyRun_SimpleString Execute a string of Python code in a new scope with builtins.
(&self, source: &str)
| 12 | /// |
| 13 | /// Execute a string of Python code in a new scope with builtins. |
| 14 | pub fn run_simple_string(&self, source: &str) -> PyResult { |
| 15 | let scope = self.new_scope_with_builtins(); |
| 16 | self.run_string(scope, source, "<string>".to_owned()) |
| 17 | } |
| 18 | |
| 19 | /// PyRun_String |
| 20 | /// |
no test coverage detected