I have a python program with this structure:
import sys
class A:
def __init__(self):
...
def func(self, other, args):
z = something
n = B.start(z)
print n
def other_funcs(self, some, args):
...
class B:
def __init__(self):
self.start(z)
def start(self, z)
k = something
return k
if __name__ == '__main__'
A()
When I generate z
I want to give it to B class and then B returns k for me again.
But the error exists:
TypeError: unbound method start() must be called with B instance as first argument (got list instance instead)