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

Function copy_attr

Lib/test/pythoninfo.py:59–64  ·  view source on GitHub ↗
(info_add, name, mod, attr_name)

Source from the content-addressed store, hash-verified

57
58
59def copy_attr(info_add, name, mod, attr_name):
60 try:
61 value = getattr(mod, attr_name)
62 except AttributeError:
63 return
64 info_add(name, value)
65
66
67def call_func(info_add, name, mod, func_name, *, formatter=None):

Callers 3

collect_cursesFunction · 0.85
collect_testcapiFunction · 0.85
collect_testinternalcapiFunction · 0.85

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected