[issue39707] Abstract property setter/deleter implementation not enforced.

Raymond Hettinger report at bugs.python.org
Fri Feb 21 11:55:49 EST 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Off-hand, I don't see how this can be easily fixed because the setters and deleters are all part of a single property object.  

When the subclass defines a property without a getter and setter, the inherited abstract property (that does have a getter and setter) is masked.

Right now, ABCMeta only looks at the concrete property.  It would have to be modified to scan the next in MRO for an abstract property and the pick apart its component fget, fset, and fdel.  That would be a significant jump in complexity with only a minimal payoff.

----------
nosy: +gvanrossum, rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39707>
_______________________________________


More information about the Python-bugs-list mailing list