def object_in_list(obj, l):
    for o in l:
        if o is obj:
            return True
    return False
Returns True if object o is in list.
dataset/ETHPy150Open pympler/pympler/pympler/util/compat.py/object_in_list