0

Does anyone know how the hashing function for objects works exactly? You can find online the answers for integers and strings, but not objects.

Can anyone help me?

10
  • 1
    Integers and strings are objects Commented Oct 8, 2019 at 20:26
  • It calls the class's __hash__ method. Commented Oct 8, 2019 at 20:27
  • It has to do with the way the object implemented the __hash__ protocol Commented Oct 8, 2019 at 20:27
  • yes but integers are mod N, string use polynomial expansion to create hash functions. Objects I have no idea Commented Oct 8, 2019 at 20:27
  • @smac89 which is what exactly? this is the question. anyone can just call hash() and hope Commented Oct 8, 2019 at 20:27

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.