SHARE
TWEET

Untitled

a guest Apr 10th, 2012 17 Never
  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
RAW Paste Data
Top