T
Torsten Bronger
Hallöchen!
When I use properties in new style classes, I usually pass get/set
methods to property(), like this:
x = property(get_x)
If I overwrite get_x in a derived class, any access to x still calls
the base get_x() method. Is there a way to get the child's get_x()
method called instead?
(I found the possibility of using an intermediate method _get_x
which calls get_x but that's ugly.)
Tschö,
Torsten.
When I use properties in new style classes, I usually pass get/set
methods to property(), like this:
x = property(get_x)
If I overwrite get_x in a derived class, any access to x still calls
the base get_x() method. Is there a way to get the child's get_x()
method called instead?
(I found the possibility of using an intermediate method _get_x
which calls get_x but that's ugly.)
Tschö,
Torsten.