This will bind self to handler:
bound_handler = lambda *args, **kwargs: handler(self, *args, **kwargs) bound_handler = lambda *args, **kwargs: handler(self, *args, **kwargs) This works by passing self as the first argument to the function. objectobj.functionf() is just syntactic sugar for functionf(objectobj).