code: def __int(value):
      '''validate an integer'''
      valid, _value = False, value
      try:
          _value = int(value)
          valid = True
      except ValueError:
          pass
      return (valid, _value, 'integer'f __int(value):
      '''validate an integer'''
      valid, _value = False, value
      try:
          _value = int(value)
          valid = True
      except ValueError:
          pass
      return (valid, _value, 'integer')
docs: validate an integer