8000 Oo fixes by cthulahoops · Pull Request #187 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

Oo fixes #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
builtin_print - separate multiple arguments with spaces.
  • Loading branch information
cthulahoops committed Nov 3, 2018
commit 277332c168cb318383c877af569e0301ddecadb3
6 changes: 6 additions & 0 deletions vm/src/builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,13 @@ fn builtin_pow(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {

pub fn builtin_print(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
trace!("print called with {:?}", args);
let mut first = true;
for a in args.args {
if first {
first = false;
} else {
print!(" ");
}
let v = vm.to_str(&a)?;
let s = objstr::get_value(&v);
print!("{}", s);
Expand Down
0