Bug or wart? You make the call.

Jeremy Fincher tweedgeezer at hotmail.com
Sat Mar 8 18:24:48 EST 2003


Just <just at xs4all.nl> wrote in message news:<just-C65CC0.20202508032003 at news1.news.xs4all.nl>...
> More importantly: a (bound) method has a reference to the instance, so 
> is specific to that particular instance. _Not_ creating them on the fly 
> means storing them in the instance, which has two disadvantages: 1) 
> extra storage space needed in the instance, 2) causes a curcular 
> reference (inst -> bound method -> instance).

But why does it need to be done at all?  If methods are really just
functions whose first argument is an instance, why does a method
object need to be created?

Jeremy




More information about the Python-list mailing list