> > class Foo: > def setX(self, x): > self.x = x > The indentation was messed-up on that example. It should have been... class Foo: def setX(self, x): self.x = x