MCPcopy Index your code
hub / github.com/RustPython/RustPython / H

Class H

Lib/test/test_set.py:301–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 def test_subclass_with_custom_hash(self):
300 # Bug #1257731
301 class H(self.thetype):
302 def __hash__(self):
303 return int(id(self) & 0x7fffffff)
304 s=H()
305 f=set()
306 f.add(s)

Callers 6

test_md5_algorithmMethod · 0.70
test_sha_algorithmMethod · 0.70
test_sha256_algorithmMethod · 0.70
get_authorizationMethod · 0.50
get_algorithm_implsMethod · 0.50

Calls

no outgoing calls

Tested by 4

test_md5_algorithmMethod · 0.56
test_sha_algorithmMethod · 0.56
test_sha256_algorithmMethod · 0.56