We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d3aab commit 4cb7f02Copy full SHA for 4cb7f02
vm/src/vm.rs
@@ -451,11 +451,11 @@ impl VirtualMachine {
451
// Do we support `**kwargs` ?
452
let kwargs = match code_object.varkeywords {
453
bytecode::Varargs::Named(ref kwargs_name) => {
454
- let d = self.ctx.new_dict().into_object();
455
- locals.set_item(&self.ctx, kwargs_name, d.clone());
+ let d = self.ctx.new_dict();
+ locals.set_item(&self.ctx, kwargs_name, d.as_object().clone());
456
Some(d)
457
}
458
- bytecode::Varargs::Unnamed => Some(self.ctx.new_dict().into_object()),
+ bytecode::Varargs::Unnamed => Some(self.ctx.new_dict()),
459
bytecode::Varargs::None => None,
460
};
461
0 commit comments