Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_item
Method · 0.45
test_setdelitem
Method · 0.45
test_as_dict
Method · 0.45
Calls
1
lower
Method · 0.45
Tested by
no test coverage detected