MCPcopy Index your code
hub / github.com/CadQuery/cadquery / __hash__

Method __hash__

cadquery/occ_impl/assembly.py:152–156  ·  view source on GitHub ↗

Create a unique hash for this material via its tuple.

(self)

Source from the content-addressed store, hash-verified

150 return (name, description, density, densityUnit)
151
152 def __hash__(self):
153 """
154 Create a unique hash for this material via its tuple.
155 """
156 return hash(self.toTuple())
157
158 def __eq__(self, other):
159 """

Callers 1

test_materialsFunction · 0.95

Calls 1

toTupleMethod · 0.95

Tested by 1

test_materialsFunction · 0.76