From 0bfbd6996ecb971f3fc67c7be1a276b3d54700cf Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni <kaushikcfd@gmail.com> Date: Thu, 29 Mar 2018 19:41:31 -0500 Subject: [PATCH] Inplace dict update./ --- loopy/preprocess.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/loopy/preprocess.py b/loopy/preprocess.py index 7b05efd0b..812f6d265 100644 --- a/loopy/preprocess.py +++ b/loopy/preprocess.py @@ -2404,8 +2404,7 @@ def specializing_incomplete_callables(kernel): # only trying to specialize the functions which are not ready # for codegen type_inf_mapper(expr) - inferred_functions = {**inferred_functions, - **type_inf_mapper.specialized_functions} + inferred_functions.update(type_inf_mapper.specialized_functions) elif isinstance(insn, (_DataObliviousInstruction)): pass -- GitLab