Your problem is that the lambda body should be an expression and the assignment should be an expression (strong deep difference in Python). If you insist on committing lambda, you will encounter many such cases and find workarounds (usually one, although not always), for example, in this case:
name = property(lambda self: self.__name,
lambda self, value: setattr(self,
'_X__name',
self.process_value(value)))
. setattr ( , , lambda), ( , , lambda).
: ( __name _X__name, X), , setattr, Pyhon , .