From: Robert Bradshaw Date: Sat, 17 Oct 2009 07:25:11 +0000 (-0700) Subject: Better error for foo(*args) when foo a cdef function. X-Git-Tag: 0.13.beta0~2^2~121^2~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7f6d96fca97990c2e2f95e95fef6572359e74e90;p=cython.git Better error for foo(*args) when foo a cdef function. --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 41422f9f..5fa7560d 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2668,7 +2668,7 @@ class GeneralCallNode(CallNode): self.type = error_type return error_type if hasattr(self.function, 'entry') and not self.function.entry.as_variable: - error(self.pos, "Keyword arguments not allowed in cdef functions.") + error(self.pos, "Keyword and starred arguments not allowed in cdef functions.") else: self.function = self.function.coerce_to_pyobject(env) self.positional_args = \