Commit be598992 authored by Stefan Behnel's avatar Stefan Behnel

make sure MergedDictNode always creates exactly a dict and not a subtype

parent 8bf10be6
......@@ -5563,7 +5563,7 @@ class MergedDictNode(ExprNode):
item.generate_evaluation_code(code)
if item.type is not dict_type:
# CPython supports calling functions with non-dicts, so do we
code.putln('if (likely(PyDict_Check(%s))) {' %
code.putln('if (likely(PyDict_CheckExact(%s))) {' %
item.py_result())
item.make_owned_reference(code)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment