def _composed_doc ( fs ) : if not fs : # Argument name for the docstring. return 'n' return '{f}({g})' . format ( f = fs [ 0 ] . __name__ , g = _composed_doc ( fs [ 1 : ] ) )
python docstring how to make
Generate a docstring for the composition of fs .
def _composed_doc(fs):
    """
    Generate a docstring for the composition of fs.
    """
    if not fs:
        # Argument name for the docstring.
        return 'n'

    return '{f}({g})'.format(f=fs[0].__name__, g=_composed_doc(fs[1:]))