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

Method __eq__

Lib/asyncio/events.py:182–188  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

180 return NotImplemented
181
182 def __eq__(self, other):
183 if isinstance(other, TimerHandle):
184 return (self._when == other._when and
185 self._callback == other._callback and
186 self._args == other._args and
187 self._cancelled == other._cancelled)
188 return NotImplemented
189
190 def cancel(self):
191 if not self._cancelled:

Callers 3

__le__Method · 0.95
__ge__Method · 0.95
test_timer_comparisonMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_timer_comparisonMethod · 0.76