MCPcopy Index your code
hub / github.com/RustPython/RustPython / getattribute

Function getattribute

Lib/test/test_pickle.py:690–694  ·  view source on GitHub ↗
(module, name)

Source from the content-addressed store, hash-verified

688 return sys.modules[module]
689
690def getattribute(module, name):
691 obj = getmodule(module)
692 for n in name.split('.'):
693 obj = getattr(obj, n)
694 return obj
695
696def get_exceptions(mod):
697 for name in dir(mod):

Callers 2

test_name_mappingMethod · 0.85

Calls 3

getattrFunction · 0.85
getmoduleFunction · 0.70
splitMethod · 0.45

Tested by

no test coverage detected