Using Super() In A Property's Setter Method When Using The @property Decorator Raises An Attributeerror
I am a little confused by the behavior when attempting to overwrite a property in a subclass. The first example sets up two classes, Parent and Child. Parent inherits from objec
Solution 1:
super()
returns a proxy object, not a superclass, and it doesn't support the function __set__()
.
And you can see more details here Python super and setting parent class property and here http://bugs.python.org/issue14965.
Post a Comment for "Using Super() In A Property's Setter Method When Using The @property Decorator Raises An Attributeerror"