Re: methods and functions, instances and classes

2006-09-04 Thread David Isaac
> 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

Re: methods and functions, instances and classes

2006-09-04 Thread Bruno Desthuilliers
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

Re: methods and functions, instances and classes

2006-09-04 Thread David Isaac
> 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

Re: methods and functions, instances and classes

2006-09-04 Thread Tim Chase
> 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: ##

Re: methods and functions, instances and classes

2006-09-04 Thread Diez B. Roggisch
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 --

methods and functions, instances and classes

2006-09-04 Thread David Isaac
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