make sure the optimiser doesn't ignore **kwargs when optimising builtin calls
authorStefan Behnel <scoder@users.berlios.de>
Mon, 22 Mar 2010 10:03:56 +0000 (11:03 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 22 Mar 2010 10:03:56 +0000 (11:03 +0100)
Cython/Compiler/Optimize.py

index 66be83933f784a32d63981a2a801fdc6f65b7db8..8d5424e377eb2c988388884b43b041df7ae1a995 100644 (file)
@@ -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)