parameters: (name_value_list)
return_statement: return result
docstring: Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary
    of the pairs. If a string is simply NAME, then the value in the dictionary
    is set to True. If VALUE can be converted to a boolean or integer, it is.
docstring_summary: Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary
    of the pairs. If a string is simply NAME, then the value in the dictionary
    is set to True. If VALUE can be converted to a boolean or integer, it is.
docstring_tokens: Takes an array of strings of the form NAME = VALUE and creates a dictionary of the pairs . If a string is simply NAME then the value in the dictionary is set to True . If VALUE can be converted to a boolean or integer it is .
function: def NameValueListToDict(name_value_list):
    """
    Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary
    of the pairs. If a string is simply NAME, then the value in the dictionary
    is set to True. If VALUE can be converted to a boolean or integer, it is.
    """
    result = { }
    for item in name_value_list:
      tokens = item.split('=', 1)
      if len(tokens) == 2:
        token_value = tokens[1]
        if token_value.lower() == 'true':
          token_value = True
        elif token_value.lower() == 'false':
          token_value = False
        else:
          # If we can make it an int, use that, otherwise, use the string.
          try:
            token_value = int(token_value)
          except ValueError:
            sys.exc_clear()
        # Set the variable to the supplied value.
        result[tokens[0]] = token_value
      else:
        # No value supplied, treat it as a boolean and set it.
        result[tokens[0]] = True
    return result
function_tokens: def NameValueListToDict ( name_value_list ) : result = { } for item in name_value_list : tokens = item . split ( '=' , 1 ) if len ( tokens ) == 2 : token_value = tokens [ 1 ] if token_value . lower ( ) == 'true' : token_value = True elif token_value . lower ( ) == 'false' : token_value = False else : # If we can make it an int, use that, otherwise, use the string. try : token_value = int ( token_value ) except ValueError : sys . exc_clear ( ) # Set the variable to the supplied value. result [ tokens [ 0 ] ] = token_value else : # No value supplied, treat it as a boolean and set it. result [ tokens [ 0 ] ] = True return result