Force exception on attribute write access only one object

Thomas Guettler hv at tbz-pariv.de
Thu Jan 8 04:38:01 EST 2009


Hi,

for debugging I want to raise an exception if an attribute is
changed on an object. Since it is only for debugging I don't want
to change the integer attribute to a property.

This should raise an exception:

myobj.foo=1

Background:
Somewhere this value gets changed. But I don't now where.



-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de



More information about the Python-list mailing list