Object System

Benjamin Peterson benjamin at python.org
Thu Mar 19 20:45:39 EDT 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