MCPcopy Index your code
hub / github.com/pyscript/pyscript / __delitem__

Method __delitem__

core/src/stdlib/pyscript/storage.py:154–162  ·  view source on GitHub ↗

Delete an item from storage via its `key`. The deletion is queued for persistence. Use `sync()` to ensure immediate completion.

(self, key)

Source from the content-addressed store, hash-verified

152 self._store = store
153
154 def __delitem__(self, key):
155 """
156 Delete an item from storage via its `key`.
157
158 The deletion is queued for persistence. Use `sync()` to ensure
159 immediate completion.
160 """
161 self._store.delete(key)
162 super().__delitem__(key)
163
164 def __setitem__(self, key, value):
165 """

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected