def descrFromDoc(obj):
 if ((obj.__doc__ is None) or obj.__doc__.isspace()):
  return None
 lines = [x.strip() for x in obj.__doc__.split('\n') if (x and (not x.isspace()))]
 return ' '.join(lines)

def descrFromDoc ( obj ) : if ( ( obj . __doc__ is None ) or obj . __doc__ . isspace ( ) ) : return None lines = [ x . strip ( ) for x in obj . __doc__ . split ( '\n' ) if ( x and ( not x . isspace ( ) ) ) ] return ' ' . join ( lines )
generate an appropriate description from docstring of the given object .