def isint(x):
    return (isinstance(x, np.integer) 
            or isinstance(x, int) or isinstance(x, long))
Returns True if `x` is an instance of an int.
dataset/ETHPy150Open inpho/vsm/vsm/viewer/types.py/isint