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

Method __contains__

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

Source from the content-addressed store, hash-verified

1040 self.remove_section(key)
1041
1042 def __contains__(self, key):
1043 return key == self.default_section or self.has_section(key)
1044
1045 def __len__(self):
1046 return len(self._sections) + 1 # the default section

Callers

nothing calls this directly

Calls 1

has_sectionMethod · 0.95

Tested by

no test coverage detected