Commit 5023b672 authored by Stefan Behnel's avatar Stefan Behnel

provide fallback for cpdef functions that were previously called with full Python semantics

parent 33d7bc50
......@@ -4449,6 +4449,12 @@ class GeneralCallNode(CallNode):
first_missing_keyword = name
continue
elif first_missing_keyword:
if entry.as_variable:
# we might be able to convert the function to a Python
# object, which then allows full calling semantics
# with default values in gaps - currently, we only
# support optional arguments at the end
return self
# wasn't the last keyword => gaps are not supported
error(self.pos, "C function call is missing "
"argument '%s'" % first_missing_keyword)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment