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

Method __init__

Lib/configparser.py:1292–1299  ·  view source on GitHub ↗

Creates a view on a section of the specified `name` in `parser`.

(self, parser, name)

Source from the content-addressed store, hash-verified

1290 """A proxy for a single section from a parser."""
1291
1292 def __init__(self, parser, name):
1293 """Creates a view on a section of the specified `name` in `parser`."""
1294 self._parser = parser
1295 self._name = name
1296 for conv in parser.converters:
1297 key = 'get' + conv
1298 getter = functools.partial(self.get, _impl=getattr(parser, key))
1299 setattr(self, key, getter)
1300
1301 def __repr__(self):
1302 return '<Section: {}>'.format(self._name)

Callers

nothing calls this directly

Calls 1

partialMethod · 0.80

Tested by

no test coverage detected