class objects, method objects, function objects
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Mon Mar 19 01:07:02 EDT 2007
En Mon, 19 Mar 2007 01:38:37 -0300, 7stud <bbxx789_05ss at yahoo.com>
escribió:
> But the last part of the passage makes no sense to me:
> ------
> When the method object is called with an argument list, it is unpacked
> again, a new argument list is constructed from the instance object and
> the original argument list, and the function object is called with
> this new argument list.
> ------
> Can anyone interpret that for me?
Calling a.foo(x,y) means that, after fetching foo from a, a new argument
list must be constructed containing 3 items: the instance a (self), x and
y.
--
Gabriel Genellina
More information about the Python-list
mailing list