Dec. 18, 2016
8:10 a.m.
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@bugs.python.org> <http://bugs.python.org/issue29005> _______________________________________