From: Stefan Behnel Date: Sat, 23 Aug 2008 15:39:06 +0000 (+0200) Subject: cleanup X-Git-Tag: 0.9.9.2.beta~63^2~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=92b1ba43a0623a5430d25fd1f10ceed94c40026b;p=cython.git cleanup --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 6fa53589..34a801af 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -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