It would be nice if there was a benchmark that exercised __getattribute__ somewhat realistically. Defining that method is the only way to exercise the specialized instruction LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN. Then again, maybe that method is not important enough to have its own specialized opcode?
See also python/cpython#93988 (comment)
It would be nice if there was a benchmark that exercised
__getattribute__somewhat realistically. Defining that method is the only way to exercise the specialized instructionLOAD_ATTR_GETATTRIBUTE_OVERRIDDEN. Then again, maybe that method is not important enough to have its own specialized opcode?See also python/cpython#93988 (comment)