[issue29005] Possibly incorrect description about method objects
Jim Fasarakis-Hilliard
report at bugs.python.org
Sun Dec 18 11:10:56 EST 2016
Jim Fasarakis-Hilliard added the comment:
Seems right to me, this is also stated clearly in the reference manual:
> When an instance method object is called, the underlying function (__func__) is called, inserting the class instance (__self__) in front of the argument list. For instance, when C is a class which contains a definition for a function f(), and x is an instance of C, calling x.f(1) is equivalent to calling C.f(x, 1).
What doesn't look right to you?
----------
nosy: +Jim Fasarakis-Hilliard
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29005>
_______________________________________
More information about the Python-bugs-list
mailing list