class myProp:
def __init__(self, x=None):
self._x = None
def _get(self):
return self._x*3 # just to show the difference with normal attr
def _set(self, x):
self._x = x
def _del(self, x):
self._x = None
x = property(_get, _set, _del, "THE X!")
myp = myProp()
myp.x = 3
print(myp.__dict__)
myp.x{'_x': 3}
9