Thomas Guettler wrote:
> Peter Otten schrieb:
>> Thomas Guettler wrote:
>>
>>> 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.
>> class A(object):
>> def __i
Hi Peter and others,
your idea was good, but it does not work with Django ORM Models:
Traceback (most recent call last):
File "/localhome/modw/django/core/handlers/base.py", line 87, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/localhome/modw/foo/
Thomas Guettler wrote:
> 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.
Why?
> This should raise an exception:
>
> myobj.foo=1
>
> Background:
> Somewhere this v
On Thu, Jan 8, 2009 at 1:38 AM, Thomas Guettler wrote:
> 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
>
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.