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

Method set

Lib/configparser.py:1262–1266  ·  view source on GitHub ↗

Set an option. Extends RawConfigParser.set by validating type and interpolation syntax on the value.

(self, section, option, value=None)

Source from the content-addressed store, hash-verified

1260 _DEFAULT_INTERPOLATION = BasicInterpolation()
1261
1262 def set(self, section, option, value=None):
1263 """Set an option. Extends RawConfigParser.set by validating type and
1264 interpolation syntax on the value."""
1265 self._validate_value_types(option=option, value=value)
1266 super().set(section, option, value)
1267
1268 def add_section(self, section):
1269 """Create a new section in the configuration. Extends

Callers 6

test_missing_sectionMethod · 0.95
test_add_sectionMethod · 0.95
test_delimiter_in_keyMethod · 0.95
__setitem__Method · 0.45

Calls 2

superClass · 0.85
_validate_value_typesMethod · 0.80

Tested by 5

test_missing_sectionMethod · 0.76
test_add_sectionMethod · 0.76
test_delimiter_in_keyMethod · 0.76