ID EN
Config Parser

has_option

Python 3.11

If the given section exists, and contains the given option, return True; otherwise return False. If the specified section is None or an empty string, DEFAULT is assumed.

Syntax

PYTHON
has_option(section, option)

See Also

True False None