finesse.utilities.misc.is_iterable

finesse.utilities.misc.is_iterable(obj)[source]

Reliable check for whether an object is iterable.

Note that strings are treated as non-iterable objects when performing this check. This will only return true for iterable non-str objects.

Returns
flagbool

True if obj is iterable, False otherwise.