MCPcopy Index your code
hub / github.com/python/cpython / ValuesView

Class ValuesView

Lib/_collections_abc.py:890–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888
889
890class ValuesView(MappingView, Collection):
891
892 __slots__ = ()
893
894 def __contains__(self, value):
895 for key in self._mapping:
896 v = self._mapping[key]
897 if v is value or v == value:
898 return True
899 return False
900
901 def __iter__(self):
902 for key in self._mapping:
903 yield self._mapping[key]
904
905
906ValuesView.register(dict_values)

Callers 6

test_knottedMethod · 0.90
test_same_as_reprMethod · 0.90
test_basic_line_wrapMethod · 0.90
test_abc_viewsMethod · 0.90
test_issue26915Method · 0.90
valuesMethod · 0.85

Calls

no outgoing calls

Tested by 5

test_knottedMethod · 0.72
test_same_as_reprMethod · 0.72
test_basic_line_wrapMethod · 0.72
test_abc_viewsMethod · 0.72
test_issue26915Method · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…