[Tutor] Adding method to class after class initialization

alan.gauld@bt.com alan.gauld@bt.com
Fri, 17 Nov 2000 17:11:12 -0000

> You can make new codeobjects with the 'new' module. Use 
> new.instancemethod here:
> >>> t.add = new.instancemethod(add, t, Test)

Wow. Thanks for that one Remco. I haven't looked at the new 
module yet but I can feel some experimentation coming on. 
Python just keeps on amazing me with its openness.

Alan G.