From: Stefan Behnel Date: Mon, 22 Mar 2010 10:03:56 +0000 (+0100) Subject: make sure the optimiser doesn't ignore **kwargs when optimising builtin calls X-Git-Tag: 0.13.beta0~259 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ac9d394ded2ccc584f5dff4feb2c410209a2b35;p=cython.git make sure the optimiser doesn't ignore **kwargs when optimising builtin calls --- diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 66be8393..8d5424e3 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -907,6 +907,8 @@ class OptimizeBuiltinCalls(Visitor.EnvTransform): arg_tuple = node.positional_args if not isinstance(arg_tuple, ExprNodes.TupleNode): return node + if node.starstar_arg: + return node args = arg_tuple.args return self._dispatch_to_handler( node, function, args, node.keyword_args)