code: def is_int_type(val):
      
      try:               # Python 2
          return isinstance(val, (int, long))
      except NameError:  # Python 3
          return isinstance(val, int)
docs: Return True if `val` is of integer type.