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

Method write

Lib/test/test_opcache.py:602–608  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

600 pass
601
602 def write(items):
603 for item in items:
604 try:
605 del item.__getitem__
606 except AttributeError:
607 pass
608 type(item).__getitem__ = lambda self, item: None
609
610 opname = "BINARY_SUBSCR_GETITEM"
611 self.assert_races_do_not_crash(opname, get_items, read, write)

Callers

nothing calls this directly

Calls 5

propertyClass · 0.85
clearMethod · 0.45
appendMethod · 0.45
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected