Module1.py
Class A ():
def func1(self,...):
.....
def func2(self,...):
.....
Module2.py
def callfunc():
How to call func2() from Module1.py
In Module2.py, I tried using
from Module1 import A
def callfunc():
A.func2()
but it throws an error stating TypeError: unbound method **func2()** must be called with **A** instance as first argument (got list instance instead)
Could someone tell me how to call func2() in Module2.py ?