>>> from monkey import patchThe 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:
Post a Comment