Better error for foo(*args) when foo a cdef function.
authorRobert Bradshaw <robertwb@math.washington.edu>
Sat, 17 Oct 2009 07:25:11 +0000 (00:25 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sat, 17 Oct 2009 07:25:11 +0000 (00:25 -0700)
Cython/Compiler/ExprNodes.py

index 41422f9fa61b4c7a67b64ca7cf982f2c64866a47..5fa7560d131445e7e1e5450834dd594cc56155ed 100644 (file)
@@ -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 = \