(cls, defs)
generate handler docstring
generate handler docstring
generate handler docstring
def set_handler_doc (cls, defs):
    """ generate handler docstring """
    cls.__doc__ = "Custom dispatch handler with default args.\n\n" \
                  "Parameters:\n"
    for k,v in defs.items():
        cls.__doc__ += "  %s = %s\n" % (k,v)
def set_handler_doc ( cls , defs ) : cls . __doc__ = "Custom dispatch handler with default args.\n\n" "Parameters:\n" for k , v in defs . items ( ) : cls . __doc__ += "  %s = %s\n" % ( k , v )