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

Method __delitem__

Lib/configparser.py:1035–1040  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

1033 self.read_dict({key: value})
1034
1035 def __delitem__(self, key):
1036 if key == self.default_section:
1037 raise ValueError("Cannot remove the default section.")
1038 if not self.has_section(key):
1039 raise KeyError(key)
1040 self.remove_section(key)
1041
1042 def __contains__(self, key):
1043 return key == self.default_section or self.has_section(key)

Callers

nothing calls this directly

Calls 2

has_sectionMethod · 0.95
remove_sectionMethod · 0.95

Tested by

no test coverage detected