def _is_list(arg):
 if isinstance(arg, dict):
  return False
 if isinstance(arg, str):
  return False
 return (((not _has_method(arg, 'strip')) and _has_method(arg, '__getitem__')) or _has_method(arg, '__iter__'))

def _is_list ( arg ) : if isinstance ( arg , dict ) : return False if isinstance ( arg , str ) : return False return ( ( ( not _has_method ( arg , 'strip' ) ) and _has_method ( arg , '__getitem__' ) ) or _has_method ( arg , '__iter__' ) )
checks if arg is list-like .