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

Method write

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

Source from the content-addressed store, hash-verified

680 pass
681
682 def write(items):
683 for item in items:
684 try:
685 del item.__getitem__
686 except AttributeError:
687 pass
688 type(item).__getitem__ = lambda self, item: None
689
690 opname = "BINARY_OP_SUBSCR_GETITEM"
691 self.assert_races_do_not_crash(opname, get_items, read, write)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected