set method

set

Sets value of the first found name-value pair to the specified value and removes the others. If no name-value pairs with the specified name are found, new one will be appended to the list.

def set(self, name, value):
    ...
ParameterTypeDescription
namestrKey which will be used to find name-value pairs.
valuestrValue which will be set.

See Also