[Tutor] Mutable Properties

Dave Angel davea at ieee.org
Fri Oct 1 04:21:45 CEST 2010

On 2:59 PM, Chris King wrote:
>  On 9/30/2010 8:43 PM, Steven D'Aprano wrote:
>> <snip>
>> What problem are you trying to solve? There is likely another way to
>> solve it. (Not necessarily an easy way, but we'll see.)
> So I'll have to create my own object which modifies each method to 
> fire off the set method if the old form and the new form are unequal, 
> there is no easy way?
Try rephrasing that in English.  Or just answer Chris's question.  What 
problem are you trying to solve?

The system will call the get() method if you're accessing the existing 
object, whether to look at it or modify it.  It'll call the set() method 
if you're binding a new object to the attribute.


More information about the Tutor mailing list