MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __init__

Method __init__

tools/python-3.11.9-amd64/Lib/configparser.py:1261–1268  ·  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

1259 """A proxy for a single section from a parser."""
1260
1261 def __init__(self, parser, name):
1262 """Creates a view on a section of the specified `name` in `parser`."""
1263 self._parser = parser
1264 self._name = name
1265 for conv in parser.converters:
1266 key = 'get' + conv
1267 getter = functools.partial(self.get, _impl=getattr(parser, key))
1268 setattr(self, key, getter)
1269
1270 def __repr__(self):
1271 return '<Section: {}>'.format(self._name)

Callers

nothing calls this directly

Calls 1

partialMethod · 0.80

Tested by

no test coverage detected