MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / items

Method items

sortedcontainers/sorteddict.py:363–371  ·  view source on GitHub ↗

Return new sorted items view of the sorted dict's items. See :class:`SortedItemsView` for details. :return: new sorted items view

(self)

Source from the content-addressed store, hash-verified

361
362
363 def items(self):
364 """Return new sorted items view of the sorted dict's items.
365
366 See :class:`SortedItemsView` for details.
367
368 :return: new sorted items view
369
370 """
371 return SortedItemsView(self)
372
373
374 def values(self):

Callers 15

__or__Method · 0.95
__ror__Method · 0.95
copyMethod · 0.95
test_initFunction · 0.95
test_clearFunction · 0.95
test_itemsFunction · 0.95
test_updateFunction · 0.95
test_update2Function · 0.95
test_itemsviewFunction · 0.95
test_items_view_indexFunction · 0.95

Calls 1

SortedItemsViewClass · 0.85

Tested by 12

test_initFunction · 0.76
test_clearFunction · 0.76
test_itemsFunction · 0.76
test_updateFunction · 0.76
test_update2Function · 0.76
test_itemsviewFunction · 0.76
test_items_view_indexFunction · 0.76
stress_getitemFunction · 0.64
stress_eqFunction · 0.64
stress_items_keys_valuesFunction · 0.64
get_itemsviewFunction · 0.64