def sqllist(lst):
 if isinstance(lst, string_types):
  return lst
 else:
  return ', '.join(lst)

def sqllist ( lst ) : if isinstance ( lst , string_types ) : return lst else : return ', ' . join ( lst )
converts the arguments for use in something like a where clause .