summaryrefslogtreecommitdiff
path: root/pypers/super/special_meth.py
blob: 66104b0c819cf34bc3a03e505d540225eaaf4c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
Does bound super have problems with special methods?
""" # seems not

"""
certainly problems with __self_class__, __thisclass__
"""
class B(object):
    def __init__(self):
        print "B.__init__"

class C(B):
    def __init__(self):
        print "C.__init__"
        self.__super.__init__()

C._C__super = super(C)

c = C()

print dir(c._C__super)