def isIterable(x):
    if type(x) in (str, unicode):
        return False
    try:
        x_iter = iter(x)
        return True
    except:
        return False
dataset/ETHPy150Open rll/lfd/lfd/rapprentice/util.py/isIterable/original