cleanup
authorStefan Behnel <scoder@users.berlios.de>
Sat, 23 Aug 2008 15:39:06 +0000 (17:39 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 23 Aug 2008 15:39:06 +0000 (17:39 +0200)
Cython/Compiler/Nodes.py

index 6fa53589753dec2d427c17954b66481e5d7b5a13..34a801af12894c5d8f90520975e2879a6fb59611 100644 (file)
@@ -1823,8 +1823,9 @@ class DefNode(FuncDefNode):
 
         # --- optimised code when we do not receive any keyword arguments
         if self.num_required_kw_args:
+            # pure error case: keywords required but not passed
             code.putln('} else {')
-            if not self.star_arg:
+            if not self.star_arg and not self.starstar_arg:
                 self.generate_positional_args_check(
                     max_positional_args, has_fixed_positional_count, code)
             # simple case: keywords required but none passed