MCPcopy
hub / github.com/Xyntax/POC-T / items

Method items

thirdparty/odict/odict.py:488–500  ·  view source on GitHub ↗

``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)

Source from the content-addressed store, hash-verified

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 """

Callers 15

__eq__Method · 0.95
__lt__Method · 0.95
__le__Method · 0.95
__ne__Method · 0.95
__gt__Method · 0.95
__ge__Method · 0.95
__deepcopy__Method · 0.95
__setitem__Method · 0.80
updateMethod · 0.80
__getitem__Method · 0.80
__repr__Method · 0.80
__lt__Method · 0.80

Calls 1

valuesMethod · 0.95

Tested by

no test coverage detected