Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPythondata model dunder dispatchSingle-choice MCQ

When __getattribute__ is defined, how does __getattr__ relate to it during c.foo where foo is missing?

class C: def __getattribute__(self, name): return object.__getattribute__(self, name) def __getattr__(self, name): return 'default'