Return a shallow copy of the sorted dict. Runtime complexity: `O(n)` :return: new sorted dict
(self)
| 322 | |
| 323 | |
| 324 | def copy(self): |
| 325 | """Return a shallow copy of the sorted dict. |
| 326 | |
| 327 | Runtime complexity: `O(n)` |
| 328 | |
| 329 | :return: new sorted dict |
| 330 | |
| 331 | """ |
| 332 | return self.__class__(self._key, self.items()) |
| 333 | |
| 334 | __copy__ = copy |
| 335 |