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

When you write `instance.method()` on a normal class, why does `type(instance.method)` report `method` rather than `function`, while `type(Class.method)` (in Python 3) reports `function`?

class C: def m(self): pass print(type(C.__dict__['m'])) print(type(C().m)) print(type(C.m))