Popular recipes by Ken Seehof http://code.activestate.com/recipes/users/99736/2001-10-16T01:13:22-07:00ActiveState Code RecipesMethod Enhancement (Python) 2001-10-15T23:18:57-07:00Ken Seehofhttp://code.activestate.com/recipes/users/99736/http://code.activestate.com/recipes/81982-method-enhancement/ <p style="color: grey"> Python recipe 81982 by <a href="/recipes/users/99736/">Ken Seehof</a> . </p> <p>Method Enhancement</p> <p>This recipe demonstrates a technique for adding functionality to an existing class method after the class has already been defined.</p> <p>Requires python 2.1 or later.</p> Class Adoption (Python) 2001-10-16T01:13:22-07:00Ken Seehofhttp://code.activestate.com/recipes/users/99736/http://code.activestate.com/recipes/81984-class-adoption/ <p style="color: grey"> Python recipe 81984 by <a href="/recipes/users/99736/">Ken Seehof</a> . </p> <p>This recipe shows how to modify the class hierarchy of an instance object after it has already been instantiated.</p> Modify class method in-place (Python) 2001-08-21T15:27:16-07:00Ken Seehofhttp://code.activestate.com/recipes/users/99736/http://code.activestate.com/recipes/66543-modify-class-method-in-place/ <p style="color: grey"> Python recipe 66543 by <a href="/recipes/users/99736/">Ken Seehof</a> (<a href="/recipes/tags/programs/">programs</a>). Revision 2. </p> <p>Once in a while it becomes necessary to globally change the behaviour of classes in a third party library. This code demonstrates the ability to modify the __init__ method of an arbitrary class in-place. It's also good for making functional programmers wince, which can be entertaining :-)</p>