MCPcopy Index your code
hub / github.com/python/cpython / getattribute

Function getattribute

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

Source from the content-addressed store, hash-verified

618 return sys.modules[module]
619
620def getattribute(module, name):
621 obj = getmodule(module)
622 for n in name.split('.'):
623 obj = getattr(obj, n)
624 return obj
625
626def get_exceptions(mod):
627 for name in dir(mod):

Callers 2

test_name_mappingMethod · 0.85

Calls 2

getmoduleFunction · 0.70
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…