From 7f6d96fca97990c2e2f95e95fef6572359e74e90 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 17 Oct 2009 00:25:11 -0700 Subject: [PATCH] Better error for foo(*args) when foo a cdef function. --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = \ -- 2.26.2