is_list_like

hhpy.main.is_list_like(obj: Any) → bool[source]

Checks if a given python object is list like. The conditions must be satisfied:

  • not a string or bytes object
  • one of (Sequence, 1d-array like Iterable)
Parameters:obj – Any python object
Returns:True if list like, else False