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

configparser.InterpolationDepthError

Prev: configparser.Interpolation | Up: configparser | Next: configparser.InterpolationError
Rel: configparser.BasicInterpolation, configparser.ConfigParser, configparser.ConverterMapping, configparser.DuplicateOptionError
Ref: docs.python.org — configparser.InterpolationDepthError
Tags: #public #python3 #stdlib #configparser


Import

import configparser
from configparser import InterpolationDepthError

Signature & Overview

configparser.InterpolationDepthError(option, section, rawval)

Raised when substitutions are nested too deeply.

Methods & Attributes

Usage

import configparser

cp = configparser.ConfigParser()
cp.read_string("[s]\na = %(b)s\nb = %(a)s\n")
try:
    _ = cp["s"]["a"]
except configparser.InterpolationDepthError:
    assert True

Gotchas

REPL Inspect

from configparser import InterpolationDepthError
help(InterpolationDepthError)

Linked from

Related notes