|
126 | 126 | )
|
127 | 127 | from mypyc.irbuild.util import bytes_from_str, is_constant
|
128 | 128 | from mypyc.options import CompilerOptions
|
129 |
| -from mypyc.primitives.dict_ops import dict_get_item_op, dict_set_item_op |
| 129 | +from mypyc.primitives.dict_ops import dict_set_item_op, exact_dict_get_item_op |
130 | 130 | from mypyc.primitives.generic_ops import iter_op, next_op, py_setattr_op
|
131 | 131 | from mypyc.primitives.list_ops import list_get_item_unsafe_op, list_pop_last, to_list
|
132 | 132 | from mypyc.primitives.misc_ops import check_unpack_count_op, get_module_dict_op, import_op
|
@@ -472,7 +472,7 @@ def get_module(self, module: str, line: int) -> Value:
|
472 | 472 | # Python 3.7 has a nice 'PyImport_GetModule' function that we can't use :(
|
473 | 473 | mod_dict = self.call_c(get_module_dict_op, [], line)
|
474 | 474 | # Get module object from modules dict.
|
475 |
| - return self.primitive_op(dict_get_item_op, [mod_dict, self.load_str(module)], line) |
| 475 | + return self.primitive_op(exact_dict_get_item_op, [mod_dict, self.load_str(module)], line) |
476 | 476 |
|
477 | 477 | def get_module_attr(self, module: str, attr: str, line: int) -> Value:
|
478 | 478 | """Look up an attribute of a module without storing it in the local namespace.
|
@@ -1410,7 +1410,7 @@ def load_global(self, expr: NameExpr) -> Value:
|
1410 | 1410 | def load_global_str(self, name: str, line: int) -> Value:
|
1411 | 1411 | _globals = self.load_globals_dict()
|
1412 | 1412 | reg = self.load_str(name)
|
1413 |
| - return self.primitive_op(dict_get_item_op, [_globals, reg], line) |
| 1413 | + return self.primitive_op(exact_dict_get_item_op, [_globals, reg], line) |
1414 | 1414 |
|
1415 | 1415 | def load_globals_dict(self) -> Value:
|
1416 | 1416 | return self.add(LoadStatic(dict_rprimitive, "globals", self.module_name))
|
|
0 commit comments