python property getter setter code example
Example: getters python
c = C()
c.x = 'foo' # setter called
foo = c.x # getter called
del c.x # deleter called
c = C()
c.x = 'foo' # setter called
foo = c.x # getter called
del c.x # deleter called