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

Method add_option

Lib/idlelib/config.py:808–814  ·  view source on GitHub ↗

Add item/value pair for config_type and section.

(self, config_type, section, item, value)

Source from the content-addressed store, hash-verified

806 self.pages.append(self[config_type])
807
808 def add_option(self, config_type, section, item, value):
809 "Add item/value pair for config_type and section."
810 page = self[config_type]
811 value = str(value) # Make sure we use a string.
812 if section not in page:
813 page[section] = {}
814 page[section][item] = value
815
816 @staticmethod
817 def save_option(config_type, section, item, value):

Callers 15

mainFunction · 0.45
test_decimal.pyFile · 0.45
setUpMethod · 0.45
test_refleakMethod · 0.45
test_type_objectMethod · 0.45
setUpMethod · 0.45
test_process_defaultMethod · 0.45
test_option_defaultMethod · 0.45
test_parser_default_1Method · 0.45
test_parser_default_2Method · 0.45

Calls 1

strFunction · 0.85

Tested by 15

setUpMethod · 0.36
test_refleakMethod · 0.36
test_type_objectMethod · 0.36
setUpMethod · 0.36
test_process_defaultMethod · 0.36
test_option_defaultMethod · 0.36
test_parser_default_1Method · 0.36
test_parser_default_2Method · 0.36
test_no_defaultMethod · 0.36
test_default_none_1Method · 0.36