configparser.RawConfigParser.add_section()

add_section(section)

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.

Type of section is not checked which lets users create non-string named sections. This behaviour is unsupported and may cause internal errors.

doc_python
2016-10-07 17:29:17
Comments
Leave a Comment

Please login to continue.