From 2a330cc6cdc5a098f97277667bd917d7c7677b47 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 13 Feb 2025 16:59:04 +0800 Subject: [PATCH] fix `builtins_print` --- src/public/modules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/modules.c b/src/public/modules.c index 39e14ff3..03aae49b 100644 --- a/src/public/modules.c +++ b/src/public/modules.c @@ -329,8 +329,8 @@ static bool builtins_round(int argc, py_Ref argv) { static bool builtins_print(int argc, py_Ref argv) { // print(*args, sep=' ', end='\n') - py_TValue* args; - int length = pk_arrayview(argv, &args); + py_TValue* args = py_tuple_data(argv); + int length = py_tuple_len(argv); assert(length != -1); c11_sv sep = py_tosv(py_arg(1)); c11_sv end = py_tosv(py_arg(2));