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

Method __eq__

Lib/test/_test_atexit.py:161–168  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 1

unregisterMethod · 0.45

Tested by

no test coverage detected