Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
9d95a2b2
Commit
9d95a2b2
authored
Jan 26, 2014
by
Paul Sokolovsky
Browse files
Functions of fixed number of args are special-cased only for 3 or less args.
parent
2ca84aa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objfun.c
View file @
9d95a2b2
...
...
@@ -63,7 +63,7 @@ mp_obj_t fun_native_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_
return
res
;
}
else
if
(
self
->
n_args_min
==
self
->
n_args_max
)
{
}
else
if
(
self
->
n_args_min
<=
3
&&
self
->
n_args_min
==
self
->
n_args_max
)
{
// function requires a fixed number of arguments
// dispatch function call
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment