From: Stefan Behnel Date: Wed, 23 Jan 2008 19:37:01 +0000 (+0100) Subject: xdecref cleanup of star args only when required X-Git-Tag: 0.9.6.14~29^2~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5998c057fd56f0399ac7ca255bc049d077382424;p=cython.git xdecref cleanup of star args only when required --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 08a87a9e..ffc4c63d 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1352,6 +1352,7 @@ class DefNode(FuncDefNode): nargs, star_arg_addr, self.error_value())) + self.star_arg.entry.xdecref_cleanup = 0 elif self.entry.signature.has_generic_args: # make sure supernumerous positional arguments do not run # into keyword-only arguments and provide a more helpful @@ -1373,6 +1374,7 @@ class DefNode(FuncDefNode): Naming.kwdlist_cname, self.arg_address(self.starstar_arg), self.reqd_kw_flags_cname)) + self.starstar_arg.entry.xdecref_cleanup = 0 elif self.num_required_kw_args: handle_error = 1 code.put("if (unlikely(__Pyx_CheckRequiredKeywords(%s, %s, %s) < 0)) " % (