def get_obj_doc0(obj, alt="(no doc)"):
    """Returns first line of cls.__doc__, or alternative text"""
    ret = obj.__doc__.strip().split("\n")[0] if obj.__doc__ is not None else alt
    return ret
def get_obj_doc0 ( obj , alt = "(no doc)" ) : ret = obj . __doc__ . strip ( ) . split ( "\n" ) [ 0 ] if obj . __doc__ is not None else alt return ret
Returns first line of cls.__doc__, or alternative text