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

Method __setitem__

Lib/test/test_grammar.py:238–239  ·  view source on GitHub ↗
(self, item, value)

Source from the content-addressed store, hash-verified

236 def __init__(self):
237 self._dct = {}
238 def __setitem__(self, item, value):
239 self._dct[item.lower()] = value
240 def __getitem__(self, item):
241 return self._dct[item]
242

Callers 3

test_set_itemMethod · 0.45
test_setdelitemMethod · 0.45
test_as_dictMethod · 0.45

Calls 1

lowerMethod · 0.45

Tested by

no test coverage detected