1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-07-05 05:50:16 +02:00
Files
pg_probackup/tests/class_check2.py
Grigory Smolkin 262f1ab410 test fixes
2017-05-03 18:05:19 +03:00

24 lines
435 B
Python

class Base(object):
def __init__(self):
self.a = 10
self.b = 1
# def func(self, arg1, arg2):
# print 'Child {0}, a = {1}'.format(arg1, arg2)
class ChildA(Base):
def __init__(self):
Base.__init__(self)
self.b = self.b + 1
class ChildB(ChildA):
def __init__(self):
ChildA.__init__(self)
print 'b = {0}'.format(self.b)
# c = b + self.a
#ChildA()
ChildB()