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

Class KeyStr

Lib/test/test_context.py:626–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624
625
626class KeyStr(str):
627 def __hash__(self):
628 if HashKey._crasher is not None and HashKey._crasher.error_on_hash:
629 raise HashingError
630 return super().__hash__()
631
632 def __eq__(self, other):
633 if HashKey._crasher is not None and HashKey._crasher.error_on_eq:
634 raise EqError
635 return super().__eq__(other)
636
637
638class HaskKeyCrasher:

Callers 1

test_hamt_stressMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_hamt_stressMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…