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

Class Base

Lib/test/test_compare.py:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 """object.__ne__() should not invoke reflected __eq__()"""
74 calls = []
75 class Base:
76 # Inherits object.__ne__()
77 def __eq__(*args):
78 calls.append('Base.__eq__')
79 return NotImplemented
80 class Derived(Base): # Subclassing forces higher priority
81 def __eq__(*args):
82 calls.append('Derived.__eq__')

Callers 1

test_ne_low_priorityMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_ne_low_priorityMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…