Adding new methods to new-style classes dynamically

Michele Simionato michele.simionato at gmail.com
Thu May 5 04:51:32 EDT 2005


Do you mean setattr?

setattr(A, meth_name, lambda self: type(self))
               

       Michele Simionato




More information about the Python-list mailing list