Addendum to my last reply: although the New Method is deprecated,
new.instancemethod (from Antoon's message) can be replaced by from types import MethodType f.show = MethodType(show,f) and every thing still works. -- http://mail.python.org/mailman/listinfo/python-list