On this page
configparser.MultilineContinuationError
Prev: configparser.MissingSectionHeaderError | Up: configparser | Next: configparser.NoOptionError
Rel: configparser.BasicInterpolation, configparser.ConfigParser, configparser.ConverterMapping, configparser.DuplicateOptionError
Ref: docs.python.org — configparser.MultilineContinuationError
Tags: #public #python3 #stdlib #configparser
Import
import configparser
from configparser import MultilineContinuationError
Signature & Overview
configparser.MultilineContinuationError(filename, lineno, line)
Raised when a key without value is followed by continuation line
Methods & Attributes
MultilineContinuationError.add_note(self, note, /)— Add a note to the exceptionMultilineContinuationError.append(self, lineno, line)—MultilineContinuationError.appendmethod/property.MultilineContinuationError.combine(self, others)—MultilineContinuationError.combinemethod/property.MultilineContinuationError.with_traceback(self, tb, /)— Set self.traceback to tb and return self.
Usage
import configparser
# Python 3.13+: raised when a multiline value violates continuation rules
assert issubclass(configparser.ParsingError, configparser.Error)
Gotchas
- Subclass of
ParsingError.
REPL Inspect
from configparser import MultilineContinuationError
help(MultilineContinuationError)
Linked from
Related notes
- tuts/python3/stdlib_module/configparser/MissingSectionHeaderError Linked here; links to this page; shared tags: #configparser, #stdlib
- tuts/python3/stdlib_module/configparser/NoOptionError Linked here; links to this page; shared tags: #configparser, #stdlib
- tuts/python3/stdlib_module/configparser/BasicInterpolation Linked here; shared tags: #configparser, #stdlib
- tuts/python3/stdlib_module/configparser/ConfigParser Linked here; shared tags: #configparser, #stdlib
- tuts/python3/stdlib_module/configparser/ConverterMapping Linked here; shared tags: #configparser, #stdlib
- tuts/python3/stdlib_module/configparser/DuplicateOptionError Linked here; shared tags: #configparser, #stdlib
- tuts/python3/stdlib_module/configparser links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/configparser/DuplicateSectionError shared tags: #configparser, #stdlib
- tuts/python3/stdlib_module/configparser/ExtendedInterpolation shared tags: #configparser, #stdlib
- tuts/python3/stdlib_module/configparser/Interpolation shared tags: #configparser, #stdlib