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

Method _get_conv

Lib/configparser.py:854–862  ·  view source on GitHub ↗
(self, section, option, conv, *, raw=False, vars=None,
                  fallback=_UNSET, **kwargs)

Source from the content-addressed store, hash-verified

852 return conv(self.get(section, option, **kwargs))
853
854 def _get_conv(self, section, option, conv, *, raw=False, vars=None,
855 fallback=_UNSET, **kwargs):
856 try:
857 return self._get(section, conv, option, raw=raw, vars=vars,
858 **kwargs)
859 except (NoSectionError, NoOptionError):
860 if fallback is _UNSET:
861 raise
862 return fallback
863
864 # getint, getfloat and getboolean provided directly for backwards compat
865 def getint(self, section, option, *, raw=False, vars=None,

Callers 4

getintMethod · 0.95
getfloatMethod · 0.95
getbooleanMethod · 0.95
getlenMethod · 0.80

Calls 1

_getMethod · 0.95

Tested by 1

getlenMethod · 0.64