Adding methods to instances

Ed Leafe ed at leafe.com
Fri Dec 16 21:09:00 EST 2005


On Dec 16, 2005, at 7:55 AM, Antoon Pardon wrote:

> But this will make the function a method to all instances of the  
> class.
> Is that what you want? From your first post I had the impression you
> only wanted the function to be the method of one particular instance.

     Yes, you're correct - I hadn't noticed that, since all my tests  
had single instances.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com







More information about the Python-list mailing list