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

Method __hash__

Lib/test/test_weakset.py:182–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

180 # Bug #1257731
181 class H(WeakSet):
182 def __hash__(self):
183 return int(id(self) & 0x7fffffff)
184 s=H()
185 f=set()
186 f.add(s)

Callers

nothing calls this directly

Calls 1

idFunction · 0.85

Tested by

no test coverage detected