Runtime Data Attributes
method.__func__
Underlying Python function of a bound method. Calling it directly requires explicitly supplying the receiver. Not all built-in bound callables expose this field.
Formal Syntax & Structure
python syntaxpython
method.__func__Return Value
function
Value exposed by this attribute; availability and mutability depend on the owner as described.
Working Example
Example Snippetpython
class C: def f(self): return 7c = C(); m = c.fprint(m.__func__ is C.f)