We use it with sphinx-apidoc to create our HTML and PDF documentation.
Here is an example of how I use docstrings:
def add_pdr(process, userid, log): """ Create and perform the target account operation PDR If the function/method is complex, I'd put a short one-line summary in the first line above, and a more detailed explanation here. :param dict process: dict of process details :param str userid: userid to perform actions on :param obj log: log object to perform logging to :raises KeyError: if the userid doesn't exist :raises APIError: if process dict is invalid :return: True on success, False upon failure """
source share