import ast


def get_function_details(functions):
    """
    Create a generator for function name/docstring tuples.
​
    :param functions: Iterable of function objects from source code
    :return: Generator of tuples of fuction names and docstrings
    """
    return ((f.name, ast.get_docstring(f)) for f in functions)