MCPcopy Index your code
hub / github.com/python/mypy / load_globals_dict

Method load_globals_dict

mypyc/irbuild/builder.py:1541–1543  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1539 return self.primitive_op(dict_get_item_op, [_globals, reg], line)
1540
1541 def load_globals_dict(self) -> Value:
1542 module = self.globals_lookup_module or self.module_name
1543 return self.add(LoadStatic(dict_rprimitive, "globals", module))
1544
1545 def load_module_attr_by_fullname(self, fullname: str, line: int) -> Value:
1546 module, _, name = fullname.rpartition(".")

Callers 9

get_assignment_targetMethod · 0.95
load_global_strMethod · 0.95
translate_globalsFunction · 0.80
transform_decoratorFunction · 0.80
finalizeMethod · 0.80
allocate_classFunction · 0.80

Calls 2

addMethod · 0.95
LoadStaticClass · 0.90

Tested by

no test coverage detected