t.m.e._WatchMonkey : class documentation

Part of twisted.manhole.explorer View Source View In Hierarchy

I hang on a method and tell you what I see.

TODO: Aya! Now I just do browseObject all the time, but I could tell you what got called with what when and returning what.

Method __init__ Make a monkey to hang on this instance object.
Method install Install myself on my instance in place of this method.
Method uninstall Remove myself from this instance and restore the original method.
Method __call__ Pretend to be the method I replaced, and ring the bell.
def __init__(self, instance): (source)
Make a monkey to hang on this instance object.
def install(self, methodIdentifier): (source)
Install myself on my instance in place of this method.
def uninstall(self): (source)
Remove myself from this instance and restore the original method.

(I hope.)

def __call__(self, instance, *a, **kw): (source)
Pretend to be the method I replaced, and ring the bell.
API Documentation for Twisted, generated by pydoctor at 2013-11-08 22:07:30.