Re: trap setting attribute when the attribute is dict

2007-09-03 Thread yosuke
John Machin <[EMAIL PROTECTED]> wrote: > On Sep 4, 5:47 am, <[EMAIL PROTECTED]> wrote: >> Arnaud Delobelle <[EMAIL PROTECTED]> wrote: >> > On Sep 3, 7:00 pm, <[EMAIL PROTECTED]> wrote: >> >> >> I want to do something like this. My class/instance has a dict as a >> >> property. I want the instance

Re: trap setting attribute when the attribute is dict

2007-09-03 Thread yosuke
Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > On Sep 3, 8:47 pm, <[EMAIL PROTECTED]> wrote: > [...] >> My intention was to have a propery 'sum' in my object, and which has sum >> of all the values() of the dict (i have code to make sure that the value >> of dict are all numeric). I could just th

Re: trap setting attribute when the attribute is dict

2007-09-03 Thread John Machin
On Sep 4, 5:47 am, <[EMAIL PROTECTED]> wrote: > Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > > On Sep 3, 7:00 pm, <[EMAIL PROTECTED]> wrote: > > >> I want to do something like this. My class/instance has a dict as a > >> property. I want the instance to catch the change in the dict (change > >>

Re: trap setting attribute when the attribute is dict

2007-09-03 Thread Arnaud Delobelle
On Sep 3, 8:47 pm, <[EMAIL PROTECTED]> wrote: [...] > My intention was to have a propery 'sum' in my object, and which has sum > of all the values() of the dict (i have code to make sure that the value > of dict are all numeric). I could just the propery being calculated > everytime the property

Re: trap setting attribute when the attribute is dict

2007-09-03 Thread yosuke
Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > On Sep 3, 7:00 pm, <[EMAIL PROTECTED]> wrote: >> >> I want to do something like this. My class/instance has a dict as a >> property. I want the instance to catch the change in the dict (change >> in some values, addition/deletion of key/value etc) to

Re: trap setting attribute when the attribute is dict

2007-09-03 Thread Arnaud Delobelle
On Sep 3, 7:00 pm, <[EMAIL PROTECTED]> wrote: > Hello all, > > I have a question which might be simple or need some work around. > > I want to do something like this. My class/instance has a dict as a > property. I want the instance to catch the change in the dict (change > in some values, additi

trap setting attribute when the attribute is dict

2007-09-03 Thread yosuke
Hello all, I have a question which might be simple or need some work around. I want to do something like this. My class/instance has a dict as a property. I want the instance to catch the change in the dict (change in some values, addition/deletion of key/value etc) to be recognized by the clas