About this question
Hard · Code Analysis · Quant Trader interview question · python, dunder-methods, attribute-access, descriptor-protocol
Consider a Python class that defines the __getattr__ method but does not define the __getattribute__ method. Under what circumstances is the __getattr__ method called during attribute access?