adding instance methods after instantiation

Skip Montanaro skip at pobox.com
Sat Jun 23 10:16:43 EDT 2001


    Lee> Is there some way to make m2 an instance method so that it will
    Lee> automatically get passed c1 as its first argument?

Check out the instancemethod function of the new module.

    Lee> Is this a reasonable thing to want to do?

Yup, people ask about it from time-to-time.

-- 
Skip Montanaro (skip at pobox.com)
(847)971-7098




More information about the Python-list mailing list