@WithDesc("Integer")
def TInt(val):
  # For backwards compatibility with older Python versions, boolean values are
  # also integers and should be excluded in this test.
  #
  # >>> (isinstance(False, int), isinstance(True, int))
  # (True, True)
  return isinstance(val, (int, long)) and not isinstance(val, bool)
Checks if the given value is an integer.
dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/TInt