Override property setter of base class in Python 3 - USE CASE
Nagy László Zsolt
gandalf at shopzeus.com
Sun Sep 11 09:21:51 EDT 2016
> Yes, I believe it does. (Others may disagree. This is a design
> question and very much a matter of style, not hard fact.) I would have
> an explicit action "set_content" which will set the value of an input
> field, the inner text of a textarea, the checked state of a check box,
> etc.
In other words, you would use simple getter and setter methods instead
of properties. It is the simplest solution. (And I believe, it is
non-pythonic, but that is just an opinion.)
I would like to hear other opinions.
More information about the Python-list
mailing list