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.

DaveA


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to