Skip to content

Commit

Permalink
pythongh-125436: fixup missing desc and verionchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
litlighilit committed Oct 14, 2024
1 parent 4f84f43 commit b8db50b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,13 @@ ConfigParser Objects
converter gets its own corresponding :meth:`!get*` method on the parser
object and section proxies.

When *allow_unnamed_section* is ``True`` (default: ``False``),
the first section name can be omitted, options with no section name
specified ahead (often called ``"Global Options"`` or
``options in "Default Section"``) are allowed. See
`"Supported INI File Structure" section<#supported-ini-file-structure>`_
for details.

It is possible to read several configurations into a single
:class:`ConfigParser`, where the most recently added configuration has the
highest priority. Any conflicting keys are taken from the more recent
Expand Down Expand Up @@ -1045,6 +1052,9 @@ ConfigParser Objects
Raise a :exc:`MultilineContinuationError` when *allow_no_value* is
``True``, and a key without a value is continued with an indented line.

.. versionchanged:: 3.13
The *allow_unnamed_section* argument was added.

.. method:: defaults()

Return a dictionary containing the instance-wide defaults.
Expand Down

0 comments on commit b8db50b

Please sign in to comment.