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

Class Pred

Lib/test/_test_atexit.py:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 log.append(3)
159
160 class Pred:
161 def __eq__(self, other):
162 nonlocal cnt
163 cnt += 1
164 if cnt == when:
165 atexit.unregister(what)
166 if other is f2:
167 return True
168 return False
169
170 for what, expected in (
171 (f1, [3]),

Callers 1

test_eq_unregisterMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_eq_unregisterMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…