def is_integer(obj):
    if PYTHON3:
        return isinstance(obj, int)
    return isinstance(obj, (int, long))
Is this an integer.
dataset/ETHPy150Open eandersson/amqpstorm/amqpstorm/compatibility.py/is_integer