flupke wrote:
> Hi,
>
> i have a property in a class that gets changed
> and i would want to know who changes it.
> Is there a way i can find out the calling function of a property?
You're looking for sys._getframe.
Reinhold
--
http://mail.python.org/mailman/listinfo/python-list
flupke wrote:
> Hi,
>
> i have a property in a class that gets changed
> and i would want to know who changes it.
> Is there a way i can find out the calling function of a property?
>
> Thanks,
> Benedict
I solved it by using
import traceback, sys
traceback.print_stack()
in the propert
Hi,
i have a property in a class that gets changed
and i would want to know who changes it.
Is there a way i can find out the calling function of a property?
Thanks,
Benedict
--
http://mail.python.org/mailman/listinfo/python-list