From 6ac9d394ded2ccc584f5dff4feb2c410209a2b35 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 22 Mar 2010 11:03:56 +0100 Subject: [PATCH] make sure the optimiser doesn't ignore **kwargs when optimising builtin calls --- Cython/Compiler/Optimize.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.26.2