'Add an item by value, consulting the keyfunc for the key.'

@collection.appender
@collection.internally_instrumented
def set(self, value, _sa_initiator=None):

    key = self.keyfunc(value)
    self.__setitem__(key, value, _sa_initiator)
