| | |
- __builtin__.object
-
- caller_location
- method_debug_log
- proc_file_reader
-
- machine_memory_info
- virtual_memory_info
class method_debug_log(__builtin__.object) |
| |
For Python 2.4 or greater. Use an instance of this class as a
decorator for class methods, and it will print the call signature and
call location before the method is executed.
Example:
debug = libtbx.introspection.method_debug_log()
class a (object) :
@debug
def foo (self, x) :
print x
def main () :
my_object = a()
a.foo(1)
main()
Running this results in the following output when LIBTBX_DEBUG_LOG is set:
a.foo(1) @ test.py(13) main
1 |
| |
Methods defined here:
- __call__(self, f)
- __init__(self)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
|