MCPcopy Index your code
hub / github.com/RustPython/RustPython / __getitem__

Method __getitem__

Lib/test/test_ordered_dict.py:1070–1074  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

1068 self.counts = dict.fromkeys(('get', 'set', 'del'), 0)
1069
1070 def __getitem__(self, item):
1071 self.counts['get'] += 1
1072 value = super().__getitem__(item)
1073 self.move_to_end(item)
1074 return value
1075
1076 def __setitem__(self, key, value):
1077 self.counts['set'] += 1

Callers

nothing calls this directly

Calls 2

superClass · 0.85
move_to_endMethod · 0.80

Tested by

no test coverage detected