Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 10th, 2012  |  syntax: Python  |  size: 0.23 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. In [1]: class Foo(object):
  2.    ...:         def __init__(self, x):
  3.    ...:                 self.x = x
  4.    ...:
  5.  
  6. In [2]: # These two values are the same
  7.  
  8. In [3]: print(hash(Foo(3)))
  9. 5414271
  10.  
  11. In [4]: print(hash(Foo(4)))
  12. 5415719