def issequence(obj):
    """Return True if `obj` is sequence, but not string

    @rtype: bool
    """
    if isinstance(obj, StringTypes):
        return False
    else:
        try:
            len(obj)
            return True
        except __HOLE__:
            return False
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/issequence