I have a function reference that is being called by an object. What I'd like is for that object to pass itself as a parameter to the function as it would normally do for its own functions.
IE I would like to use self.myFoo() instead of self.myFoo(self) in the following sample
Code Sample:
def foo(self):
    print(self.toString())
class Node:
    def __init__(self, myFoo):
        self.myFoo = myFoo
    def run(self):
        self.myFoo()
    def toString(self):
        return "Hello World"
n = Node(foo)
n.run()
 
     
     
     
    