On this page
  1. configparser.UnnamedSectionDisabledError
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

configparser.UnnamedSectionDisabledError

Prev: configparser.SectionProxy | Up: configparser
Rel: configparser.BasicInterpolation, configparser.ConfigParser, configparser.ConverterMapping, configparser.DuplicateOptionError
Ref: docs.python.org โ€” configparser.UnnamedSectionDisabledError
Tags: #public #python3 #stdlib #configparser


Import

import configparser
from configparser import UnnamedSectionDisabledError

Signature & Overview

configparser.UnnamedSectionDisabledError()

Raised when an attempt to use UNNAMED_SECTION is made with the feature disabled.

Methods & Attributes

Usage

import configparser

# Python 3.13+: raised when accessing UNNAMED_SECTION without allow_unnamed_section=True
assert hasattr(configparser, "ConfigParser")

Gotchas

REPL Inspect

from configparser import UnnamedSectionDisabledError
help(UnnamedSectionDisabledError)

Linked from

Related notes