So lets say I have a function FuncA()
. Is there a dunder method that lets me see if FuncA is set equal to something kind of like __add__
?
With __add__
I can set what happens if you do FuncA() + 1
, but what I am looking to do is to set what happens if you do FuncA() = 1
.