def is_iterable(x):
    "A implementation independent way of checking for iterables"
    try:
        iter(x)
    except __HOLE__:
        return False
    else:
        return True
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/utils/itercompat.py/is_iterable