What I am wanting to do is execute code whenever a property of a class
object has been changed.
i.e.
class test:
testproperty = None
bob = test()
bob.testproperty = 'something'
So, when bob.testproperty is set to a new value I can run code that
changes other dependent yet loosly tied prop
I have two objects obj1 and obj2. Inside obj1 there is an attribute for
success (obj1.success) and for containing other objects (obj1.data)
I am using setattr() to add obj2 as an attribute to obj1.data
(obj1.data.obj2) this is working fine.
My problem is when someone changes a variable in obj2 in
Aaron Brady wrote:
> On Mar 5, 8:44 am, nuwandame wrote:
>> I have two objects obj1 and obj2. Inside obj1 there is an attribute for
>> success (obj1.success) and for containing other objects (obj1.data)
>>
>> I am using setattr() to add obj2 as an attribute to obj1.da
Aaron Brady wrote:
> On Mar 5, 9:51 am, nuwandame wrote:
>> Aaron Brady wrote:
>>> On Mar 5, 8:44 am, nuwandame wrote:
>>>> I have two objects obj1 and obj2. Inside obj1 there is an attribute for
>>>> success (obj1.success) and for containing other o