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

Method get

Lib/configparser.py:1343–1356  ·  view source on GitHub ↗

Get an option value. Unless `fallback` is provided, `None` will be returned if the option is not found.

(self, option, fallback=None, *, raw=False, vars=None,
            _impl=None, **kwargs)

Source from the content-addressed store, hash-verified

1341 return self._name
1342
1343 def get(self, option, fallback=None, *, raw=False, vars=None,
1344 _impl=None, **kwargs):
1345 """Get an option value.
1346
1347 Unless `fallback` is provided, `None` will be returned if the option
1348 is not found.
1349
1350 """
1351 # If `_impl` is provided, it should be a getter method on the parser
1352 # object that provides the desired type conversion.
1353 if not _impl:
1354 _impl = self._parser.get
1355 return _impl(self._name, option, raw=raw, vars=vars,
1356 fallback=fallback, **kwargs)
1357
1358
1359class ConverterMapping(MutableMapping):

Callers 3

_interpolate_someMethod · 0.45
_interpolate_someMethod · 0.45
__getitem__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected