titus.genpy.labeledFcn

titus.genpy.labeledFcn(fcn, paramNames)[source]

Wraps a function with its parameter names (in-place).

Parameters:
  • fcn (callable Python object) – function to wrap
  • paramNames (list of strings) – parameters to attach to the function
Return type:

callable Python object

Returns:

the original function, modified in-place by adding paramNames as an attribute