view tvii/iterable.py @ 38:a69d1e6ff46d

[documentation] note more links
author Jeff Hammel <k0scist@gmail.com>
date Mon, 04 Sep 2017 14:15:36 -0700
parents 0149be5a984c
children
line wrap: on
line source

def isiterable(x):
    try:
        iter(x)
        return True
    except TypeError:
        return False