ID EN
Config Parser

add_section

Python 3.11

Add a section named section to the instance. If a section by the given name already exists, DuplicateSectionError is raised. If the default section name is passed, ValueError is raised. The name of the section must be a string; if not, TypeError is raised.

Syntax

PYTHON
add_section(section)

See Also

DuplicateSectionError ValueError TypeError TypeError