Skip to content

Commit 9936342

Browse files
committed
PrintExpr should print the repr.
1 parent 7c3cd31 commit 9936342

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vm/src/vm.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,10 +1007,11 @@ impl VirtualMachine {
10071007
match expr.borrow().kind {
10081008
PyObjectKind::None => (),
10091009
_ => {
1010+
let repr = self.to_repr(expr.clone()).unwrap();
10101011
builtins::builtin_print(
10111012
self,
10121013
PyFuncArgs {
1013-
args: vec![expr.clone()],
1014+
args: vec![repr],
10141015
kwargs: vec![],
10151016
},
10161017
).unwrap();

0 commit comments

Comments
 (0)