Ejemplo n.º 1
0
def slice_docstring(desc):
    return SvDocstring(desc).get_shorthand()
Ejemplo n.º 2
0
def function_iterator(module_file):
    for name in ddir(module_file):
        obj = getattr(module_file, name)
        if callable(obj) and SvDocstring(obj.__doc__).has_shorthand():
            yield name, obj.__doc__