In class Test def self print am self In def self print am evil twin se

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
In [3]: class Test:
...: def x(self):
...: print "I am %s" % self
...:
In [4]: def y(self):
...: print "I am %s's evil twin..." % self
...:
In [5]: Test.x = y
In [6]: t = Test()
In [7]: t.x()
I am <__main__.Test instance at 0x82b466c>'s evil twin...