On Tue, 20 Mar 2007 16:03:53 +0100, "Fredrik Lundh"
<> declaimed the following in comp.lang.python:
> Dennis Lee Bieber wrote:
>
> > "it(the" -- argument list, not the object -- ") is unpacked again
>
> no, "it" refers to the bound method object, as 7stud would have realized if
> he'd read the entire paragraph. here's the relevant portion:
>
> /.../ a method object is created by packing (pointers to) the instance object
> and the function object just found together in an abstract object: this is the
> method object. When the method object is called with an argument list, it
> is unpacked again /.../
>
Ah, one level more of indirection (in understanding, not code
pointers)... At least, it now reads like...
instance.method(argu, ments)
-> (instance, class_function)(argu, ments)
-> class_function(instance, argu, ments)
--
Wulfraed Dennis Lee Bieber KD6MOG
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff:
web-)
HTTP://www.bestiaria.com/