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

Method __getitem__

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

Source from the content-addressed store, hash-verified

1302 return '<Section: {}>'.format(self._name)
1303
1304 def __getitem__(self, key):
1305 if not self._parser.has_option(self._name, key):
1306 raise KeyError(key)
1307 return self._parser.get(self._name, key)
1308
1309 def __setitem__(self, key, value):
1310 self._parser._validate_value_types(option=key, value=value)

Callers

nothing calls this directly

Calls 2

has_optionMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected