I've been trying to wrap my head around the @property
decorator, and I think I get it, but I am very curious to know which magic methods @property (and the builtin property
) modify. Is it just __get__
and __set__
, or could __getattr__
and __setattr__
be invoked as well? __getattribute__
? __setattribute__
?
As I understand it, @someproperty will modify __get__
, @someproperty.setter will modify __set__
, and @someproperty.deleter will modify __del__
but I'm suspicious that I have an over simplified view on this.
I haven't been able to find this information, and I've been searching all day about properties, so hopefully someone can shed some light on this for me. Links and examples greatly appreciated.
edit: I wrongly was saying "call" instead of "modify," I know @property will modify magic methods. I'm just worn out from staring at this forever... thanks for the correction.