PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T>

This commit is contained in:
Noa
2021-10-18 16:01:17 -05:00
committed by Jeong YunWon
parent e5a1c3b137
commit 8dd18d97be
85 changed files with 3350 additions and 1716 deletions

View File

@@ -88,7 +88,7 @@ impl<'vm> ShellHelper<'vm> {
} else {
// we need to get a variable based off of globals/builtins
let globals = str_iter_method(self.globals.as_object().clone(), "keys").ok()?;
let globals = str_iter_method(self.globals.as_object().incref(), "keys").ok()?;
let builtins = str_iter_method(self.vm.builtins.clone(), "__dir__").ok()?;
(first, globals, Some(builtins))
};