(obj)
A Python 2 and 3 compatible util to check whether `obj` is iterable.
A Python 2 and 3 compatible util to check whether `obj` is iterable.
A Python 2 and 3 compatible util to check whether obj is iterable .
def _is_iterable(obj):
  """A Python 2 and 3 compatible util to check whether `obj` is iterable."""
  try:
    iter(obj)
    return True
  except TypeError:
    return False
def _is_iterable ( obj ) : try : iter ( obj ) return True except TypeError : return False