Accessors in Python (getters and setters)

Gerhard Fiedler gelists at gmail.com
Sun Jul 16 10:35:00 EDT 2006


On 2006-07-15 19:46:16, Ben C wrote:

> There isn't any practical difference, as you say, if all the setter does
> is set. But it might easily do a few other subtle things, in particular
> wait for a good moment to actually effect the change.

I agree. But even then, for me there's no practical difference between
calling a setter that does those other subtle things, or setting an
attribute, and by this triggering the associated property handler than then
does what in the other case the setter would do.

Gerhard




More information about the Python-list mailing list