parameters: (element, name, *args)
return_statement: return int_val
docstring: value = get_integer_attrib(element, name, default)
  
      Returns the named attribute for the element, or the (optional)
      default value. If the default value is not provided and the
      attribute is missing then an exception is thrown. If the attribute
      is not a valid integer then an exception is thrown.
docstring_summary: value = get_integer_attrib(element, name, default)
docstring_tokens: value = get_integer_attrib ( element name default )
function: def get_integer_attrib(element, name, *args):
      """value = get_integer_attrib(element, name, default)
  
      Returns the named attribute for the element, or the (optional)
      default value. If the default value is not provided and the
      attribute is missing then an exception is thrown. If the attribute
      is not a valid integer then an exception is thrown.
      """
      (val, is_default) = _get_attrib(element, name, *args)
      if is_default:
          return val
      try:
          int_val = int(val)
      except ValueError:
          int_val = None
      if int_val is None:
          # can't raise this exception directly in the above except
          # handler because it gives an overly complex displayed error
          raise Exception('Attribute "%s" must be an integer: %s' % (name, val))
      return int_val
function_tokens: def get_integer_attrib ( element , name , * args ) : ( val , is_default ) = _get_attrib ( element , name , * args ) if is_default : return val try : int_val = int ( val ) except ValueError : int_val = None if int_val is None : # can't raise this exception directly in the above except # handler because it gives an overly complex displayed error raise Exception ( 'Attribute "%s" must be an integer: %s' % ( name , val ) ) return int_val