@CortexReaver/

BasicInheritance

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.2550621473710504","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"Y2xhc3MgQToKICAgIGZvbyA9IDEKICAgIApjbGFzcyBCOgogICAgYmFyID0gMgogICAgCmNsYXNzIEMoQSwgQik6CiAgICBAcHJvcGVydHkKICAgIGRlZiBwcmludGVyKHNlbGYpOgogICAgICAgIHByaW50KHNlbGYuZm9vLCBzZWxmLmJhcikKICAgICAgICAKd2liYmxlID0gQygpCndpYmJsZS5wcmludGVy"},"asBuffer":null},"loaded":true}}
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