(self, other=None, /, **kwargs)
| 233 | return o |
| 234 | |
| 235 | def update(self, other=None, /, **kwargs): |
| 236 | d = self.data |
| 237 | if other is not None: |
| 238 | if not hasattr(other, "items"): |
| 239 | other = dict(other) |
| 240 | for key, o in other.items(): |
| 241 | d[key] = KeyedRef(o, self._remove, key) |
| 242 | for key, o in kwargs.items(): |
| 243 | d[key] = KeyedRef(o, self._remove, key) |
| 244 | |
| 245 | def valuerefs(self): |
| 246 | """Return a list of weak references to the values. |