Object System

Benjamin Peterson benjamin at python.org
Fri Mar 20 01:45:39 CET 2009

John Mendelewski <john.mendelewski <at> gmail.com> writes:
> What goes on behind the scenes to make a.do() evaluate the do
> method with a bound to self in that method? Is this implemented
> in C, Python? I think I have a grasp of how to use objects, but
> I was wondering about the implementation I suppose.

This is implemented using descriptors. See
http://users.rcn.com/python/download/Descriptor.htm for a good overview. 

More information about the Python-list mailing list