setter and getter methods iin python 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