def isStringLike(anobj):
    try:
        # Avoid succeeding expensively if anobj is large.
        anobj[:0]+''
    except:
        return 0
    else:
        return 1
dataset/ETHPy150Open cortesi/pry/libpry/utils.py/isStringLike/original