I have requirement in Python that, When I do this kind of code
class B(): pass
A = B # not really assign value, but to invoke a function to do some work.
I want to invoke other function when do assignment "A = B", so I think about operator overloading, I found a link for this:
But it seems we cannot overload the operator "=", is there any workaround for this?