p2or
11/2/2014 - 6:41 PM

typecheck.py

def typecheck(obj): 
    return hasattr(obj, '__iter__') and not isinstance(obj, str)