Part of twisted.python.monkey View Source View In Hierarchy
Method | __init__ | Undocumented |
Method | addPatch | Add a patch so that the attribute name on obj
will be assigned to |
Method | patch | Apply all of the patches that have been specified with addPatch . |
Method | restore | Restore all original values to any patched objects. |
Method | runWithPatches | Apply each patch already specified. Then run the function f with the |
Method | _alreadyPatched | Has the name attribute of obj already been
patched by this |
name
on obj
will be assigned to value
when patch
is called or
during runWithPatches
.
You can restore the original values with a call to restore().
name
attribute of obj
already been
patched by this patcher?