class test class test3 test def __init__ self print Init test __init__

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class test():
class test3(test):
def __init__(self):
print "Init"
test.__init__(self, "asd")
pass
def __init__(self, wtf):
self.r1 = wtf
self.r2 = "hehe"
print self.r1, self.r2
def print_some(self, what):
print what
return True
def get_test(self, hehe):
new_obj = test3(hehe)
return new_obj