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

Function call_func

Lib/test/pythoninfo.py:67–75  ·  view source on GitHub ↗
(info_add, name, mod, func_name, *, formatter=None)

Source from the content-addressed store, hash-verified

65
66
67def call_func(info_add, name, mod, func_name, *, formatter=None):
68 try:
69 func = getattr(mod, func_name)
70 except AttributeError:
71 return
72 value = func()
73 if formatter is not None:
74 value = formatter(value)
75 info_add(name, value)
76
77
78def collect_sys(info_add):

Callers 9

fMethod · 0.85
collect_sysFunction · 0.85
collect_platformFunction · 0.85
collect_osFunction · 0.85
collect_testinternalcapiFunction · 0.85
collect_resourceFunction · 0.85
collect_supportFunction · 0.85
collect_windowsFunction · 0.85
collect_fipsFunction · 0.85

Calls 1

funcFunction · 0.70

Tested by 1

fMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…