def resetTo(self, newContents ):
        self.clear()
        self.addMembers( newContents )
clear and set the members to the passed list/set
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/ObjectSet.resetTo