2008-02-22

Don't do this at home!

But if you are going to do it, here's a package that will keep you somewhat safe from harm. It's called monkey and naturally, part of the motivation for writing it was this:
   >>> from monkey import patch
The patch-method is more than just a decorator. It demands that you supply a valid signature on the method you're patching (you may supply more than one). A wrap-method is also supplied for patches that require access to the patched method. It is provided as the first argument to the patch method.

On the cheeseshop: pypi.python.org/pypi/monkey

0 comments: