Skip to content

Commit 9d95a2b

Browse files
committed
Functions of fixed number of args are special-cased only for 3 or less args.
1 parent 2ca84aa commit 9d95a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/objfun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mp_obj_t fun_native_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_
6363

6464
return res;
6565

66-
} else if (self->n_args_min == self->n_args_max) {
66+
} else if (self->n_args_min <= 3 && self->n_args_min == self->n_args_max) {
6767
// function requires a fixed number of arguments
6868

6969
// dispatch function call

0 commit comments

Comments
 (0)