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

Method __delitem__

Lib/os.py:718–725  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

716 self._data[key] = value
717
718 def __delitem__(self, key):
719 encodedkey = self.encodekey(key)
720 unsetenv(encodedkey)
721 try:
722 del self._data[encodedkey]
723 except KeyError:
724 # raise KeyError with the original key value
725 raise KeyError(key) from None
726
727 def __iter__(self):
728 # list() from dict object is an atomic operation

Callers

nothing calls this directly

Calls 1

unsetenvFunction · 0.85

Tested by

no test coverage detected