> Alan Isaac wrote:
> > are method calls actually calls of the class's functions?
"Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Depends on how the method was associated to the instance (you can set
> methods on a per-instance property), but in the general case
David Isaac wrote:
> When I create an instance of a class,
> are the class's functions *copied* to create the methods?
No, unless you explicitely do it.
> Or are method calls actually calls of the class's functions?
Depends on how the method was associated to the instance (you can set
methods on
> Alan Isaac wrote:
> > When I create an instance of a class,
> > are the class's functions *copied* to create the methods?
> > Or are method calls actually calls of the class's functions?
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On the class functions. You
> When I create an instance of a class,
> are the class's functions *copied* to create the methods?
> Or are method calls actually calls of the class's functions?
>
> I am sure this is both obvious and FAQ,
> but I did not find a clear answer
The best way to find out is to try it:
##
David Isaac wrote:
> When I create an instance of a class,
> are the class's functions *copied* to create the methods?
> Or are method calls actually calls of the class's functions?
On the class functions. You can make every instance have it's own methods,
though - but only explicitly.
Diez
--
When I create an instance of a class,
are the class's functions *copied* to create the methods?
Or are method calls actually calls of the class's functions?
I am sure this is both obvious and FAQ,
but I did not find a clear answer
(e.g. here
http://docs.python.org/tut/node11.html#SECTION001134