summaryrefslogtreecommitdiff
path: root/python/testData/hierarchy/call/Static/Constructor/main.py
blob: 1c2e14776c2596c0ba1de38b0ccc53066ea2ca9a (plain)
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
26
27
28
29
30
31
32
class A():
    def __init__(self):
        invoke1(self)
        invoke2(self)

    def method1(self):
        pass

    def method2(self):
        pass

def invoke1(p):
    p.method1()


def invoke2(p):
    p.method2()


def invokeA():
    a = A()
    a.method1()
    a.method2()

    def new_class_func():
        class C():
            def bar(self):
                invokeA(A())
        return C()

a = A()
A.__init_<caret>_(a)