class C(object): foo = property(lambda self: 'bar') c = C() print(c.foo, c.foo)