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

Function subhelper

Lib/test/profilee.py:98–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 TICKS += 15
97
98def subhelper():
99 # 8 calls
100 # 10 ticks total: 8 ticks local, 2 ticks in subfunctions
101 global TICKS
102 TICKS += 2
103 for i in range(2): # 0
104 try:
105 C().foo # 1 x 2
106 except AttributeError:
107 TICKS += 3 # 3 x 2
108
109class C:
110 def __getattr__(self, name):

Callers 1

helper2Function · 0.85

Calls 1

CClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…