Brian Kelley wrote: > class bar: > def some_fun(x): > foo = lambda self=self, x: self.object.insert(x) > foo(x) oops, that should be foo = lambda x, self=self: self.object.insert(x)