Calling methods without objects?

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Sep 26 02:47:42 EDT 2017


Thomas Jollans wrote:
> When an object is
> constructed from a class, all functions in the class are turned into
> method objects that refer back to the original object.

That's not quite true. Nothing is done to the methods at
the time an instance is created; rather, a bound method
object is created each time a method is looked up via
an instance.

-- 
Greg



More information about the Python-list mailing list