Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPythondescriptorsSingle-choice MCQ

In the call to a descriptor stored on a class, what objtype does __get__ receive when accessed via an instance?

class D: def __get__(self, obj, objtype=None): return (obj is None, objtype) class C: d = D() print(C.d) c = C() print(c.d)