[issue39707] Abstract property setter/deleter implementation not enforced, but documented as such

2020-12-09 Thread Guido van Rossum
Guido van Rossum added the comment: Josh, feel free to submit a PR (make sure it mentions this issue). -- ___ Python tracker ___ __

[issue39707] Abstract property setter/deleter implementation not enforced, but documented as such

2020-12-09 Thread Josh Rosenberg
Josh Rosenberg added the comment: If this is going to be closed as rejected, I think it still needs some improvement to the documentation. Right now, the docs for abstractproperty (deprecated in favor of combining property and abstractmethod) state: "If only some components are abstract, onl

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

2020-02-21 Thread Guido van Rossum
Guido van Rossum added the comment: I agree with Raymond here. This is a job for a static type checker like mypy. Closing. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

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

2020-02-21 Thread Raymond Hettinger
Raymond Hettinger 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

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

2020-02-21 Thread Arn Vollebregt (KPN)
New submission from Arn Vollebregt (KPN) : When concretely implementing an abstract ABC class with an abstract property getter, setter and deleter it is not enfored that the setter and deleter are implemented. Instead, the property is treated as a read-only property (as would normally be the