def to_op(self):
        if not self._adds and not self._removes:
            return None
        changes = {}
        if self._adds:
            changes['adds'] = list(self._adds)
        if self._removes:
            changes['removes'] = list(self._removes)
        return changes

    # collections.Set API, operates only on the immutable version
Retrieve parameters.
dataset/ETHPy150Open basho/riak-python-client/riak/datatypes/set.py/Set.to_op--crossover with--dataset/ETHPy150Open sysdream/pysqli/pysqli/core/context.py/Context.get_params