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

Method __hash__

Lib/test/mapping_tests.py:561–565  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

559 class BadHash(object):
560 fail = False
561 def __hash__(self):
562 if self.fail:
563 raise Exc()
564 else:
565 return 42
566
567 d = self._empty_mapping()
568 x = BadHash()

Callers

nothing calls this directly

Calls 1

ExcClass · 0.70

Tested by

no test coverage detected