Esempio n. 1
0
 def get_argments(method, trace_type):
     if not TraceMethodCtrl.has_method(trace_type, method):
         return None
     functor = TraceMethodCtrl.get_method(trace_type, method)
     (args, varargs, varkw, defaults) = inspect.getargspec(functor)
     return inspect.formatargspec(args=args[1:],
                                  varargs=varargs,
                                  varkw=varkw,
                                  defaults=defaults)
Esempio n. 2
0
 def get_docstring(method):
     trace_type = TraceFixedDT
     if not TraceMethodCtrl.has_method(trace_type, method):
         return '<None>'
     func = TraceMethodCtrl.get_method(trace_type, method)
     return inspect.getdoc(func)
Esempio n. 3
0
 def get_argments(method, trace_type):
     if not TraceMethodCtrl.has_method(trace_type, method):
         return None
     functor = TraceMethodCtrl.get_method(trace_type, method)
     (args, varargs, varkw, defaults) = inspect.getargspec(functor)
     return inspect.formatargspec(args=args[1:], varargs=varargs, varkw=varkw, defaults=defaults)
Esempio n. 4
0
 def get_docstring(method):
     trace_type = TraceFixedDT
     if not TraceMethodCtrl.has_method(trace_type, method):
         return '<None>'
     func = TraceMethodCtrl.get_method(trace_type, method)
     return inspect.getdoc(func)