Package rdkit :: Package Logger :: Module Logger :: Class Callable
[hide private]
[frames] | no frames]

Class Callable

source code

object --+
         |
        Callable

this is just a simple class with a __call__ method we'll use to pass
any method invocations back to the caller.

Instance Methods [hide private]
 
__init__(self, log, obj, method)
Constructor
source code
 
__call__(self, *args, **kwargs)
logs the method name and arguments and makes the call
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, log, obj, method)
(Constructor)

source code 
Constructor

**Arguments:**

  - log: a python list (or anything else supporting the append method)
       which is used to log the actual invocation of a method

  - obj: the object which is calling the method

  - method: the *name* of the method to be invoked

Overrides: object.__init__