In Python, is there a way to call a class method from another class? I am attempting to spin my own MVC framework in Python and I can not figure out how to invoke a method f
Just call it and supply self
self
class A: def m(self, x, y): print(x+y) class B: def call_a(self): A.m(self, 1, 2) b = B() b.call_a()
output: 3