Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
class A:
    foo = 1
    
class B:
    bar = 2
    
class C(A, B):
    @property
    def printer(self):
        print(self.foo, self.bar)
        
wibble = C()
wibble.printer