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

Class Hashable

extra_tests/snippets/builtin_set.py:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66
67class Hashable(object):
68 def __init__(self, obj):
69 self.obj = obj
70
71 def __repr__(self):
72 return repr(self.obj)
73
74 def __hash__(self):
75 return id(self)
76
77
78assert repr(set()) == "set()"

Callers 1

builtin_set.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected