Adding new methods at runtime to a class

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Mon Nov 24 21:56:26 CET 2003


> From: Fernando Rodriguez
> 
> How can I add new methods at runtime to a class?

Before we send you into what most would consider black magic in Python, you should explain why you want to.

In most cases, this is *not* what you want to do - there are better, more elegant and much more Pythonic ways of doing it.

Tim Delaney





More information about the Python-list mailing list