In 49 c1 method is c2 method Out 49 False In 50 c1 method __dict__ hoo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
In [49]: c1.method is c2.method
Out[49]: False
In [50]: c1.method.__dict__['hook'] = 1
In [51]: c1.method.hook
Out[51]: 1
In [52]: c2.method.hook
Out[52]: 1