mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Add note about when output is printed to mini_repl.rs
This commit is contained in:
1 parent
9beb44251d
commit
c6aed0464a
1 file changed
+1
@@ -41,6 +41,7 @@ fn main() -> PyResult<()> {
|
||||
.map_err(|err| vm.new_syntax_error(&err))?;
|
||||
|
||||
// this line also automatically prints the output
|
||||
// (note that this is only the case when compile::Mode::Single is passed to vm.compile)
|
||||
let output = vm.run_code_obj(code_obj, scope.clone())?;
|
||||
|
||||
// store the last value in the "last" variable
|
||||
|
||||
Reference in new issue
Block a user