We can never have "too many Python posts."
What's the difference between __getattr__ and __getattribute__ in a class?
__getattr__ acts as a fallback when an attribute isn't found.
__getattribute__ triggers every time an attribute is accessed, existing or not.
#python
What's the difference between __getattr__ and __getattribute__ in a class?
__getattr__ acts as a fallback when an attribute isn't found.
__getattribute__ triggers every time an attribute is accessed, existing or not.
#python
Comments