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

Class BadEq

Lib/test/mapping_tests.py:549–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547 class Exc(Exception): pass
548
549 class BadEq(object):
550 def __eq__(self, other):
551 raise Exc()
552 def __hash__(self):
553 return 24
554
555 d = self._empty_mapping()
556 d[BadEq()] = 42

Callers 1

test_getitemMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_getitemMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…