``items`` returns a list of tuples representing all the ``(key, value)`` pairs in the dictionary. >>> d = OrderedDict(((1, 3), (3, 2), (2, 1))) >>> d.items() [(1, 3), (3, 2), (2, 1)] >>> d.clear() >>> d.items() []
(self)
| 486 | return OrderedDict(self) |
| 487 | |
| 488 | def items(self): |
| 489 | """ |
| 490 | ``items`` returns a list of tuples representing all the |
| 491 | ``(key, value)`` pairs in the dictionary. |
| 492 | |
| 493 | >>> d = OrderedDict(((1, 3), (3, 2), (2, 1))) |
| 494 | >>> d.items() |
| 495 | [(1, 3), (3, 2), (2, 1)] |
| 496 | >>> d.clear() |
| 497 | >>> d.items() |
| 498 | [] |
| 499 | """ |
| 500 | return zip(self._sequence, self.values()) |
| 501 | |
| 502 | def keys(self): |
| 503 | """ |
no test coverage detected