Python __getattr__ Behavior - Quant Trader Interview Question
Difficulty: Hard
Category: Code Analysis
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
Topics: python, dunder-methods, attribute-access, descriptor-protocol
Problem Description
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?
Practice this hard trader interview question on MyntBit - the all-in-one quant learning platform with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.