title: Hash for lambda function in Python
body: <p>I'm trying to get the hash of a lambda function. Why do I get two values (8746164008739 and -9223363290690767077)? Why is the hash from the lambda function not always one value?</p>
  
  <pre><code>&gt;&gt;&gt; fn = lambda: 1
  &gt;&gt;&gt; hash(fn)
  -9223363290690767077
  &gt;&gt;&gt; fn = lambda: 1
  &gt;&gt;&gt; hash(fn)
  8746164008739
  &gt;&gt;&gt; fn = lambda: 1
  &gt;&gt;&gt; hash(fn)
  -9223363290690767077
  &gt;&gt;&gt; fn = lambda: 1
  &gt;&gt;&gt; hash(fn)
  8746164008739
  &gt;&gt;&gt; fn = lambda: 1
  &gt;&gt;&gt; hash(fn)
  -9223363290690767077
  </code></pre>