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

Class MappingView

Lib/_collections_abc.py:831–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829
830
831class MappingView(Sized):
832
833 __slots__ = '_mapping',
834
835 def __init__(self, mapping):
836 self._mapping = mapping
837
838 def __len__(self):
839 return len(self._mapping)
840
841 def __repr__(self):
842 return '{0.__class__.__name__}({0._mapping!r})'.format(self)
843
844 __class_getitem__ = classmethod(GenericAlias)
845
846
847class KeysView(MappingView, Set):

Callers 6

test_knottedMethod · 0.90
test_same_as_reprMethod · 0.90
test_basic_line_wrapMethod · 0.90
test_abc_viewsMethod · 0.90
test_nested_viewsMethod · 0.90

Calls

no outgoing calls

Tested by 6

test_knottedMethod · 0.72
test_same_as_reprMethod · 0.72
test_basic_line_wrapMethod · 0.72
test_abc_viewsMethod · 0.72
test_nested_viewsMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…