How does python compute the hash of a tuple – stackoverflow.com

In python, if I have a tuple with many elements, is its hash calculated from its elements' ids or its elements' content? In this example, a = (1, [1,2]) hash(a) It errors out saying list is ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "How does python compute the hash of a tuple – stackoverflow.com"