(self, module: str, line: int)
| 546 | self.add_bool_branch(comparison, out, needs_import) |
| 547 | |
| 548 | def get_module(self, module: str, line: int) -> Value: |
| 549 | # Python 3.7 has a nice 'PyImport_GetModule' function that we can't use :( |
| 550 | mod_dict = self.call_c(get_module_dict_op, [], line) |
| 551 | # Get module object from modules dict. |
| 552 | return self.primitive_op(dict_get_item_op, [mod_dict, self.load_str(module, line)], line) |
| 553 | |
| 554 | def get_module_attr(self, module: str, attr: str, line: int) -> Value: |
| 555 | """Look up an attribute of a module without storing it in the local namespace. |
no test coverage detected