Add methods to a class at runtime?

Robert Oschler Oschler at
Sun Sep 1 11:31:29 EDT 2002

I found the following interesting paragraph regarding Python during a Google

From: Glyph Lefkowitz (glyph at
Subject: Re: Copy constructors
Newsgroups: comp.lang.python

"One of the eye-popping cool features of Python is the ability to change
and have existing instances update to use the new methods automatically. "

Can someone point me to a code snippet shows how to do this?


More information about the Python-list mailing list