Lines Matching refs:ref
5 from _weakref import ref
18 self.weakcontainer = ref(weakcontainer)
38 def _remove(item, selfref=ref(self)):
70 wr = ref(item)
84 self.data.add(ref(item, self._remove))
109 self.data.remove(ref(item))
114 self.data.discard(ref(item))
140 self.data.difference_update(ref(item) for item in other)
152 self.data.intersection_update(ref(item) for item in other)
156 return self.data.issubset(ref(item) for item in other)
160 return self.data < set(ref(item) for item in other)
163 return self.data.issuperset(ref(item) for item in other)
167 return self.data > set(ref(item) for item in other)
172 return self.data == set(ref(item) for item in other)
188 self.data.symmetric_difference_update(ref(item, self._remove) for item in other)