Set the value of a general constraint attribute.
Arguments:
attr: The attribute being modified.
newval: The desired new value of the attribute.