View difference between Paste ID: Eh5jeedr and RdACxrMe
SHOW: | | - or go back to the newest paste.
1-
class Foo(object):
1+
In [1]: class Foo(object):
2-
    def __init__(self, x):
2+
   ...:         def __init__(self, x):
3-
        self.x = x
3+
   ...:                 self.x = x
4
   ...:
5-
# These two values are the same
5+
6-
print(hash(Foo(3)))
6+
In [2]: # These two values are the same
7-
print(hash(Foo(4)))
7+
8
In [3]: print(hash(Foo(3)))
9
5414271
10
11
In [4]: print(hash(Foo(4)))
12
5415719