Import from parent folder

parent.py:

class A(object):
    def Method A(self):
        print("in methodA")

child.py:

from parent import A
class B(A):
    def methodb(self):
        print("am in methodb")

Gives: Invalide syntax

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.