MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __hash__

Method __hash__

searches/hill_climbing.py:61–65  ·  view source on GitHub ↗

hash the string representation of the current search state.

(self)

Source from the content-addressed store, hash-verified

59 ]
60
61 def __hash__(self):
62 """
63 hash the string representation of the current search state.
64 """
65 return hash(str(self))
66
67 def __eq__(self, obj):
68 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected