()
return result
Generate help dynamically from the __doc__ strings of attribute
    functions.
Generate help dynamically from the __doc__ strings of attribute
    functions.
Generate help dynamically from the __doc__ strings of attribute functions .
def prompt_help():
    """Generate help dynamically from the __doc__ strings of attribute
    functions."""

    result = ''
    keys = sorted (prompt_substitutions.keys())
    for key in keys:
        result += '  \\%s\t%s\n' % (key, prompt_substitutions[key].__doc__)
    result += """
A substitution can be used in a simple form, like "\\f".
An argument can also be passed to it, like "\\f{name}".
The meaning of the argument depends on the particular substitution."""
    return result
def prompt_help ( ) : result = '' keys = sorted ( prompt_substitutions . keys ( ) ) for key in keys : result += '  \\%s\t%s\n' % ( key , prompt_substitutions [ key ] . __doc__ ) result += """
A substitution can be used in a simple form, like "\\f".
An argument can also be passed to it, like "\\f{name}".
The meaning of the argument depends on the particular substitution.""" return result